-
Notifications
You must be signed in to change notification settings - Fork 24
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
topk
in the options
for imageClassifier
doesn't work
#166
Comments
Thank you @jackbdu for pointing this out! Tagging @OrpheasK who worked on the original implementation to check the code. I additionally wonder how universally understood or clear Should we consider our own name here (like we use "confidence" instead of "score" across all models) or is |
I looked into this and while there is a simple workaround to correct it and have the Since it is correctly documented in the website, correcting the issue (and perhaps renaming the parameter @shiffman) is a simple solution, we might also consider however which parameter to make the universal one for choosing the number of classes. |
This has now been addressed in #179, I've tested this with the // Get the top 25 labels
classifier.classifyStart(video, 25, gotResult); Should an example include this feature or is it just a matter of making sure the documentation is clear? |
In
[email protected]
, when initializing theimageClassifier
object, passing{ topk: 5 }
asoptions
does not seem to affect the number of labels to return. On the other hand, specifyingkNumber
works fine when callingimageClassifier.classifyStart(media, ?kNumber, callback);
Tagging relevant issues/PRs for reference: #71 #83
The text was updated successfully, but these errors were encountered: