Closed MABatin closed 2 months ago
@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:
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!
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.
For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐
Search before asking
YOLOv8 Component
No response
Bug
I have exported yolov8n.pt model to NCNN framework with batched inference enabled but get the following error:
Environment
Ultralytics YOLOv8.2.28 🚀 Python-3.11.2 torch-2.1.1 CPU (Cortex-A72) Setup complete ✅ (4 CPUs, 3.7 GB RAM, 10.7/58.0 GB disk)
Minimal Reproducible Example
Additional
No response
Are you willing to submit a PR?