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 Always load coco-ssd model? #1443

Open
venturion opened this issue Dec 26, 2022 · 0 comments
Open

objectDetector Always load coco-ssd model? #1443

venturion opened this issue Dec 26, 2022 · 0 comments

Comments

@venturion
Copy link

Dear ml5 community,

I'm submitting a new issue. Please see the details below.

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

Did you find a bug? Want to suggest an idea for feature?
yes, the "objectDetector" function is not loading custom model url, it always loads coco-ssd as in the attached image

β†’ Step 2: Screenshots or Relevant Documentation πŸ–Ό

Here's some helpful screenshots and/or documentation of the new feature

image

β†’ Step 3: Share an example of the issue πŸ¦„

Here's some example code or a demonstration of my feature in this issue, separate GitHub repo, or in the https://editor.p5js.org or codepen/jsfiddle/Glitch/etc...

  switch (modelNameOrUrl) {
    case "yolo":
      this.model = new YOLO_YOLO(this.video, ObjectDetector_objectSpread({
        disableDeprecationNotice: true
      }, this.options), callback);
      return this;

    case "cocossd":
      this.model = new CocoSsd_CocoSsd(this.video, this.options, callback);
      return this;

    default:
      // use cocossd as default
      this.model = new CocoSsd_CocoSsd(this.video, this.options, callback);
      return this;
  }

Other relevant information, if applicable

β†’ Describe your setup πŸ¦„

Here's some helpful information about my setup...

  • Web browser & version:
  • chrome: 108
  • Operating System:
  • win 10
  • ml5 version you're using:
  • 0.12.2
  • Any additional notes
    no
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