Categories
Misc

Why the prediction in converted Tensorflow model in Javascript keeps returning the same broken result but it performed great in Python (the origin) ?

I made the transfer learning model in Tensorflow python with the pretrained model Mobilenet V2, it performed so great in python even when I predicted. After that, I save the model to keras h5 format and convert it to tensorflow.js model. Then I create a static page that implements the tensorflow.js model and run it with Web Server for Chrome in Chrome browser. The prediction result I got is really confusing as the result was always the same one, no matter that I changed the image to be predicted. Any inputs, suggestion and solutions on this problem are highly appreciated. Thanks in advance!

Full Description and Code I had made so far on this issue : https://stackoverflow.com/questions/68574893/my-converted-tensorflow-transfer-learning-model-always-returns-same-results-in-t

submitted by /u/TechnologyOk9486
[visit reddit] [comments]

Leave a Reply

Your email address will not be published.