Skip to content

ObjectDetector modelsΒ #1494

@zlelik

Description

@zlelik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions