Skip to content

fix: predict result#2

Open
holanlan wants to merge 1 commit into
imgcook:mainfrom
holanlan:main
Open

fix: predict result#2
holanlan wants to merge 1 commit into
imgcook:mainfrom
holanlan:main

Conversation

@holanlan
Copy link
Copy Markdown

@holanlan holanlan commented Feb 5, 2021

This PR fixed the prediction result is always [None], and added output, the following is an example:

const predict = require('./index.js');
(async () => {
  const v1 = await predict('./0a3b6b38-fb11-451c-8a0d-b5503bc351e6.jpg');
  console.log('result:', v1);
})();
Fusing layers... 
Overriding model.yaml nc=80 with nc=2

result: {'boxes': [[135, 45, 166, 65], [53, 34, 94, 59], [260, 33, 423, 60], [464, 41, 627, 67]], 'classes': [11, 2, 1, 1], 'scores': [0.9221409559249878, 0.959892988204956, 0.964300811290741, 0.9785717725753784]}

@FeelyChau
Copy link
Copy Markdown

@rickycao-qy Could you check this PR, and bump a version, please?

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.

2 participants