Comments (1)
@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:
- 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.
- Adjust Confidence Threshold: Lower the confidence threshold when calling the model to see if it starts detecting objects.
- 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)
- Keypoints Detection HOT 2
- Filter out other classes/detection in YOLOV8 OBB HOT 7
- Segmentation Result: Distant Thin Lane Are Jagged and Discontinuous HOT 2
- AttributeError: Can't get attribute 'v10DetectLoss' on <module 'ultralytics.utils.loss'> HOT 1
- I want to retrain the yolov8m model for my new classes, but when using resume=True an error appears HOT 14
- How can I perform a training with two different machines? HOT 1
- YOLOv8 bounding box detection HOT 1
- Read data in sequence HOT 6
- UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed. This is not an error, but may impair performance. grad.sizes() = [2, 64, 1, 1], strides() = [64, 1, 64, 64] bucket_view.sizes() = [2, 64, 1, 1], strides() = [64, 1, 1, 1] (Triggered internally at ../torchrc/distributed/c10d/reducer.cpp:325.) Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass HOT 1
- Using Unity Sentis for Segmentation Model Only for Human HOT 2
- yolov8 for web-camera use to classification HOT 2
- Weights combining HOT 5
- I am getting error! Help Me to Fix it i am confused HOT 2
- export yolov8 format HOT 8
- RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument `find_unused_parameters=True` to `torch.nn.parallel.DistributedDataParallel`, and by [rank0]: making sure all `forward` function outputs participate in calculating loss. HOT 2
- can not find the data correctly when use DDP train HOT 2
- Hybrid agnostic NMS HOT 6
- How do I correctly interpret and use the output from the OBB version of Yolov8 for 360ΒΊ prediction? HOT 8
- False Positive of YOLOv8 for Object Detection HOT 1
- TypeError: object of type 'int' has no len() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.