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

Update config used in detect.js #4

Open
teengineer opened this issue Jun 25, 2024 · 0 comments
Open

Update config used in detect.js #4

teengineer opened this issue Jun 25, 2024 · 0 comments

Comments

@teengineer
Copy link

Hello, i added my trained model's export file in this app but it threw an error, i think the reason is the config and i dont know the meaning of 'topk' in config, can you explain to me?

    "float32",
    new Float32Array([
      numClass, // num class
      topk, // topk per class
      iouThreshold, // iou threshold
      scoreThreshold, // score threshold
    ])
  ); // nms config tensor

This is the error message:

Uncaught (in promise) Error: input 'images' is missing in 'feeds'.
    run inference-session-impl.ts:95
    detectImage detect.js:48

the 48. line in detect.js is
const { selected } = await session.nms.run({ detection: output0, config: config }); // perform nms and filter boxes

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