GithubHelp home page GithubHelp logo

Batch Prediction with NCNNN about ultralytics HOT 1 OPEN

MABatin avatar MABatin commented on July 22, 2024
Batch Prediction with NCNNN

from ultralytics.

Comments (1)

glenn-jocher avatar glenn-jocher commented on July 22, 2024

@MABatin hello! Thank you for providing detailed information about the issue you're encountering with batch prediction using the NCNN framework.

The error you're seeing, IndexError: amax(): Expected reduction dim 1 to have non-zero size, typically indicates that the predictions tensor is empty. This can happen if the model does not detect any objects in the input images, possibly due to the confidence threshold being too high or other preprocessing steps affecting the visibility of detectable objects.

Here are a few steps you can try to resolve this issue:

  1. Check Input Images: Ensure the images you're using contain clear, detectable objects. You might want to test with different images known to contain easily detectable objects.
  2. Adjust Confidence Threshold: Lower the confidence threshold when calling the model to see if it starts detecting objects.
  3. Review Preprocessing: Ensure that the preprocessing steps (like resizing and normalization) are appropriate for the NCNN model.

If these steps do not resolve the issue, it would be helpful to look into the model's detailed output right before the non-max suppression step to see if the model is producing any predictions at all.

Please let us know if these suggestions help or if you need further assistance!

from ultralytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.