-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[tfjs-models] - Inconsistent detections #3054
Comments
@badman-rodriguez can we have a codepen example or share the images to reproduce ? |
@rthadur thanks for responding so quickly. Will set up something pretty and share a link for you in a bit. Thank you. |
@rthadur here is a sample of the behavior: Feel free to clone and give feedback as needed. |
@badman-rodriguez thanks for the info , it looks like you are using a java script framework(svelte),I tried original coco-ssd example it is working as expected , I believe this is not a bug or feature request related to tfjs which we can help here , I would suggest you ask this question in stack-overflow with tag 'tensorflow.js' , thank you |
that's easy to blame the framework..... once i solve the problem. will post the actual solution here. Figured an expert with this package might have some expect insight on some causes.... welp, appreciate the due diligence in the investigation. |
TensorFlow.js version
Versions:
Browser version
Chrome:
81.0.4044.92 (Official Build) (64-bit)
The issue is a little weird but it happens all the time.
How to replicate
Send b64 image for Object detection... and it has 0 detections
console.log output:
Same b64 image for object detection... and!
console.log output:
and it has 1 detection...
This happens 100% of the time.
Extra Note: It has to be the same image twice. If i keep adding different images it wont predict until i load the same one a second time.
Seems like it needs a second time around to get a detection in place.
Code
The text was updated successfully, but these errors were encountered: