|
probability / className
Model loading...
|
As I understand forceHalfFloat works only for TFjs ≤ 1.7.4 but what about TFjs Wasm backend? :)
You can Crop/Rescale the cat and Copy/Paste images from the Net for classification at What did MobileNet learn?
<script>
tf.webgl.forceHalfFloat();
const img = document.getElementById('image');
const predictImage = async () => {
const model = await mobilenet.load();
const predictions = await model.classify(img);
console.log(predictions);
}
predictImage();
</script>