DEV Community

Discussion on: Tensorflow.js available on WebAssembly backend 🔥

Collapse
 
jochemstoel profile image
Jochem Stoel

This might be the ultimate stupid question but what exactly does it predict? What is in the image? If so, what do I do with this resulting array of floats?

Collapse
 
yashints profile image
Yaser Adel Mehraban

There is no such thing as stupid questions, the point of this article was to show you the difference between running the prediction in normal and web assembly backends.

I suggest you look at the mobile net demo on tjfs GitHub repo to see what can be done with the results, but tldr is that it gives you the probability of each object it detected

Collapse
 
jochemstoel profile image
Jochem Stoel

Could you elaborate on how to retrieve "piano" from this?

Thread Thread
 
yashints profile image
Yaser Adel Mehraban

Look at line 87 of this file

github.com/tensorflow/tfjs-example...

Thread Thread
 
jochemstoel profile image
Jochem Stoel

Tank joo.