microsoft / customvision-tfjs

NPM package for TensorFlow.js models exported from Custom Vision Service
https://customvision.ai
MIT License
28 stars 22 forks source link

my model only detect 10 objects, how can i detect more object #15

Closed airuikun closed 2 years ago

airuikun commented 2 years ago
image

i want to detect all objects, like image, i have 28 objects, but now only can detect 10 objects how can i detect all objects, thank you~

my code:

import * as cvstfjs from '@microsoft/customvision-tfjs';

let model = new cvstfjs.ObjectDetectionModel();
await model.loadModelAsync('http://127.0.0.1:7160/public/customvision-modal/model.json');

const image = document.getElementById('img');
const predictions = await model.executeAsync(image);
shonohs commented 2 years ago

Hi,

A quick solution is to train the project with "general (compact) [S1]" domain. It has a newer architecture and can detect more than 10 boxes.

airuikun commented 2 years ago

Hi,

A quick solution is to train the project with "general (compact) [S1]" domain. It has a newer architecture and can detect more than 10 boxes.

thank u very much~!