-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Labeling Error #259
Comments
Hmm it could be that the model is YOLOv5. It should handle any model as long as it just takes an image, but this has only been tested and expected to work with the mobilenet ssd models that were trained with the cloud annotation code samples. The UI uses the js sdk for predictions, so try to see if you can get your model working with that |
When I try using my model with the example react app, I get a similar error of:
Following clues of this being related to image size, I changed the width and height of the video feed in
to
This now results in the slightly different error of:
Looks like I might be one step closer to the root of the issue. I tried to reconvert the model to match the desired shape of [1,1,1,3], but was only able to get as low as [1,32,32,3] when playing around with the image size parameter. Still trying to figure this out, but it sounds like the problem is coming from the way that YOLOv5 converts the model to tfjs. Would you suspect the same? |
Ah okay, I think the ssd models have a preprocessing step that auto scales the image to match the expected dimensions for the model. The |
You might also run into issues with the prediction output format, because the sdk expects it to be a certain way and runs non max suppression on the results |
Hey @bourdakos1 - I'm another dev from @Panda64's team: We looked a bit into the kind of preprocessing in Mobilenet, and we're thinking we'll try to do the following to make our model work. We're curious to hear if you'd have any additional thoughts on our approach:
|
That sounds good to me 👍 |
When uploading my TF web model to cloud annotations, I get the following error in console when trying to run auto label on an image:
Any idea how to fix this? I can provide additional info if needed.
My model is a custom trained YOLOv5s (converted to a tfjs web model) with the image size set to 320x320 during training and export.
The text was updated successfully, but these errors were encountered: