Skip to content

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