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

ObjectDetector models #1494

Open
zlelik opened this issue Nov 20, 2024 · 0 comments
Open

ObjectDetector models #1494

zlelik opened this issue Nov 20, 2024 · 0 comments

Comments

@zlelik
Copy link

zlelik commented Nov 20, 2024

Dear ml5 community,

I'm submitting a new request for information/advice. Please see the details below.

β†’ Step 1: Describe the issue πŸ“

When I use objectDetector in v0.12.2 it supports 2 models: cocossd and yolo as mentioned here: https://archive-docs.ml5js.org/#/reference/object-detector

These models are quite old and limited. For example, cocossd supports only 90 labels, which is too small. Included yolo works much worse and also has the same 90 labels.

there is a support for URL of a compatible model instead of the model name. I think it should work like this

detector = ml5.objectDetector('https://URL/to/model.json', {modelUrl: 'https://URL/to/model.json'}, modelReadyCallbackFunc);

but I could not find any compatible models.

Could someone share any URLs, which will work with ML5JS object detector version 0.12.2?

I did find some models, like this (YOLOv8)
https://github.com/ultralytics/ultralytics/tree/v8.2.94
it supports 600 labels, but it only works for 640x640 pixels images, while the included cocossd model works for any image size.

Also, there are some models like Darknet
https://cdn.jsdelivr.net/gh/ml5js/ml5-data-and-models@master/models/darknetclassifier/darknetreference/model.json

but they do not work. I guess it is because they were created for image classification, not object detection.

@zlelik zlelik changed the title ObjectDetecctor models ObjectDetector models Nov 20, 2024
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

No branches or pull requests

1 participant