studies/Back-end
ํ ์ํ๋ก์ฐ์ mobilenet ๋ชจ๋ธ์ ๋ผ์ฟค์ด๋ ๋จ์ด๋ฅผ ๋ชจ๋ฅธ๋ค
Vada Kim
2021. 4. 17. 13:29
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๐ค
- ์ฐธ๊ณ
728x90
๋ฐ์ํ