๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
studies/Back-end

ํ…์„œํ”Œ๋กœ์šฐ์˜ mobilenet ๋ชจ๋ธ์€ ๋ผ์ฟค์ด๋ž€ ๋‹จ์–ด๋ฅผ ๋ชจ๋ฅธ๋‹ค

by Vada Kim 2021. 4. 17.
728x90
๋ฐ˜์‘ํ˜•

๋žซ์„œํŒฌ๋”์™€ ๋ผ์ฟค์€ ๋‹ค๋ฅด๋‹ค๊ตฌ์š”๐Ÿ˜‚ ์‚ฌ์‹ค ๊ฐ™๋‹ค๋ฉด ์Šฌํผ..

์กฐ๊ธˆ ๋” ์ž์—ฐ ์†์˜ ๋ผ์ฟค ์‚ฌ์ง„์„ ๊ฐ€์ ธ์™”์œผ๋‚˜...  "๋ถ๊ทน์—ฌ์šฐ"

Please add raccoon...

 

 

  • ๋ชจ๋ธ ์†Œ์Šค ์œ„์น˜

github.com/tensorflow/tfjs-models/tree/master/mobilenet

 

tensorflow/tfjs-models

Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub.

github.com

 

  • ๋ชจ๋ธ ์ฝ”๋“œ
<!-- Load TensorFlow.js. This is required to use MobileNet. -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.1"> </script>
<!-- Load the MobileNet model. -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet@1.0.0"> </script>

<!-- Replace this with your image. Make sure CORS settings allow reading the image! -->
<img id="img" src="raccoon.jpg" width="300px"></img>

<!-- Place your code in the script tag below. You can also use an external .js file -->
<script>
// Notice there is no 'import' statement. 'mobilenet' and 'tf' is
// available on the index-page because of the script tag above.

const img = document.getElementById('img');

// Load the model.
mobilenet.load().then(model => {
// Classify the image.
model.classify(img).then(predictions => {
  console.log('Predictions: ');
  console.log(predictions);
});
});
</script>

 

 

๊ณ„์†ํ•ด์„œ ์—…๋ฐ์ดํŠธํ•ด ๋‚˜๊ฐˆ ์˜ˆ์ •. with RACCOONS๐ŸคŽ

 

 

  • ์ฐธ๊ณ 

opentutorials.org/course/4628/29770

728x90
๋ฐ˜์‘ํ˜•