Skip to content
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

Remove 'orUrl' from 'modelNameOrUrl' in objectDetector #1470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juilie
Copy link

@juilie juilie commented Jul 23, 2023

The objectDetector used 'modelNameOrUrl' as the name for the model parameter. This naming seems misleading to me - it seems like maybe there was thought to include the ability to use a url for other models, but the code only uses yolo or coco, and defaults to coco if a url is used with no warning.

For example:
objectDetector('./myModel.json') or objectDetector('https://myWebsite.com/myModel.js') will both result in cocossd being used. To me, this means this parameter only takes a 'modelName'.

This naming seems misleading to me - it seems like maybe there was thought to include the ability to use a web url for other models, but the code only uses yolo or coco, and defaults to coco if a url is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant