I’ve been working for a week. This error appears to be from open source applications that were not in previous versions. I even tried from old models. They are working. But the one I just created doesn’t work.
This error continues. How do we fix this?
tfjs-core: ^3.0.0
tfjs-converter: ^3.0.0
TF 2.4.1
Python 3.6.9
Originally posted by @umitkacar in #4641 (comment)
I am getting the same:
Same here.
If anyone knows how to fix it, please share
The current package on NPM doesn’t included this change yet. If you are using NPM or the <script> tag to pull in the package it won’t have the change yet. I am not sure how to build and run the packages directly from Github, but if you figure that out, you should be able to try out the fix that has been merged in.
https://www.npmjs.com/package/@tensorflow/tfjs is still on ver 3.0.0
However, older models are working. This is really interesting. Where are we doing wrong?
The models we just created do not work. I think a new update generated such an error while creating the model.
Any chance you can post a link to an SSD MobileNet V2 FPNLite 320×320 model that is working?
I tried it. It is working. Thank you everyone.
Perfect!
https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.1.0/dist/tf.min.js
Please give me sometime. I’ll try this example and get back to you. Everyone is in trouble with this new version. Actually I’m thinking of a video conference to discuss.
I tested everything out, and it is working for me. I am using an SSD based Object Detection Model. I used the TF Obj Detect API 2.0 to retrain a MobileNet model. My web app is here:
https://luke-iqt.github.io/SkyScan-Web-App/index.html
And the source code is here:
https://github.com/luke-iqt/SkyScan-Web-App
I pulled in some of Hugo’s code. I think the only major difference is that he was looking at different Output Tensor Arrays:
I found the Classes, Scores and Boxes in these arrays:
https://github.com/luke-iqt/SkyScan-Web-App/blob/main/src/App.js#L110
I think he was using 4,5,6 in the output array.
My model only had one class. You may need to adjust things. Probably best to put a Breakpoint and examine the output from the inference in the Chrome Web Developer panel. Your model could be outputing things differently.
I trained Kangaroo dataset again. I used this code below to convert javascript. This model is running my demo code not React. As a results, the model is OK. I think that React is problem. I didn’t use React before.
Sorry about that!!
I just pushed some changes to fix the bounding boxes. I think it is better now.
The Web App ran a little older version of the code, so it didn’t have that problem.
Try removing the
homepage
line from the package.jsonhttps://github.com/luke-iqt/SkyScan-Web-App/blob/main/package.json#L5
that will let you use the URL localhost:3000/