Comments (6)
Great to hear that increasing imgsz
improved accuracy! 🎉
The choice of 832 isn't magic but rather a balance between resolution and performance. Larger sizes help detect smaller objects better. Feel free to experiment with different sizes to find the optimal one for your use case.
Good luck, and happy detecting! 🚀
from ultralytics.
👋 Hello @nithrous, thank you for your interest in Ultralytics YOLOv8 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.
If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it.
If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.
Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.
Install
Pip install the ultralytics
package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
pip install ultralytics
Environments
YOLOv8 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
- Notebooks with free GPU:
- Google Cloud Deep Learning VM. See GCP Quickstart Guide
- Amazon Deep Learning AMI. See AWS Quickstart Guide
- Docker Image. See Docker Quickstart Guide
Status
If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.
from ultralytics.
So i'm detecting small items. Tried another one pic, had some results, but precision is few times lower.
Also tried to use yolov8m instead yolov8n. Have some progress, but it cannot detect all objects, the precision is 40 percent vs 90 using regular yolo
Also noticed this output line:
deepsparse.pipeline WARNING Could not create v2 'yolov8' pipeline, trying legacy
from ultralytics.
@nithrous it looks like you're dealing with a few issues related to model performance and pipeline creation warnings when using DeepSparse with your YOLOv8 models.
-
Model Precision: The drop in precision when switching from YOLOv8n to YOLOv8m and using DeepSparse might be due to the differences in model architecture and how well each model handles the sparsity. YOLOv8m is generally more complex than YOLOv8n, which could affect its performance under sparsity.
-
Detection of Small Objects: If your target objects are small, you might need to adjust the model's anchor sizes or the input resolution to better capture the details of smaller objects. Increasing the input resolution can help the model detect smaller objects more accurately.
-
Pipeline Warning: The warning about the pipeline could indicate an issue with the compatibility of the model or the specific configuration of DeepSparse. Ensure that your ONNX model is exported correctly with the appropriate
opset
version and that it's compatible with the DeepSparse version you're using.
Here's a quick check you can do to ensure your ONNX model is set up correctly for DeepSparse:
from deepsparse import compile_model
model = compile_model(model_path="path_to_your_model.onnx", batch_size=1)
print(model)
This will give you an idea if the model is loaded correctly without initiating the full pipeline.
For improving detection on small objects, consider experimenting with different image sizes during the export:
yolo export model=yolov8n.pt format=onnx imgsz=832,832 opset=13
Using a larger imgsz
might help improve the detection of smaller objects.
If these adjustments don't help, I recommend revisiting the training phase to ensure your model is well-tuned for the specifics of your dataset, especially regarding small object detection.
from ultralytics.
@nithrous it looks like you're dealing with a few issues related to model performance and pipeline creation warnings when using DeepSparse with your YOLOv8 models.
- Model Precision: The drop in precision when switching from YOLOv8n to YOLOv8m and using DeepSparse might be due to the differences in model architecture and how well each model handles the sparsity. YOLOv8m is generally more complex than YOLOv8n, which could affect its performance under sparsity.
- Detection of Small Objects: If your target objects are small, you might need to adjust the model's anchor sizes or the input resolution to better capture the details of smaller objects. Increasing the input resolution can help the model detect smaller objects more accurately.
- Pipeline Warning: The warning about the pipeline could indicate an issue with the compatibility of the model or the specific configuration of DeepSparse. Ensure that your ONNX model is exported correctly with the appropriate
opset
version and that it's compatible with the DeepSparse version you're using.Here's a quick check you can do to ensure your ONNX model is set up correctly for DeepSparse:
from deepsparse import compile_model model = compile_model(model_path="path_to_your_model.onnx", batch_size=1) print(model)This will give you an idea if the model is loaded correctly without initiating the full pipeline.
For improving detection on small objects, consider experimenting with different image sizes during the export:
yolo export model=yolov8n.pt format=onnx imgsz=832,832 opset=13
Using a larger
imgsz
might help improve the detection of smaller objects.If these adjustments don't help, I recommend revisiting the training phase to ensure your model is well-tuned for the specifics of your dataset, especially regarding small object detection.
Your advice to increase imgsz helped, accuracy increased dramatically, without significant performance loss
compile_model
from deepsparse loaded the model successfully, will ask about "legacy warning" deepsparse guys
Thanks a lot!
Why did you adviced to try 832 img size? Is there some magic number set?
from ultralytics.
👋 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:
- Docs: https://docs.ultralytics.com
- HUB: https://hub.ultralytics.com
- Community: https://community.ultralytics.com
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 ⭐
from ultralytics.
Related Issues (20)
- How to use bfloat for inference with a pytorch pt weight? HOT 4
- Ground truth masks that contain holes in training of segmentation tasks HOT 5
- The meaning of the two training maps HOT 12
- Is it possible to stratify metrics? HOT 3
- i need to modify the behavior of mlflow integration HOT 6
- Creating engine on NVIDIA AGX ORIN 64GB DevKit gets stuck HOT 4
- why callback function not executed in tune() HOT 6
- 如何在训练的时候取消LetterBox直接resize,我改了之后,可是没有效果 HOT 6
- Error in Multiple GPU Training AWS HOT 14
- How to parse the object detection results from deepsparse pipeline HOT 4
- How to improve the metrics for night vision object detection? HOT 3
- yolov8 default.yaml Hyperparameters HOT 2
- How to obtain the number of samples for each class in the training set HOT 2
- Train Yolov8m Incremental HOT 2
- Custom Data and RKNN HOT 4
- How to use yolov8 algorithm combined with botsort algorithm to obtain video tracking results and obtain detailed tracking result files for subsequent tracking algorithm evaluation? HOT 5
- YOLOv8-OBB - All the losses are 0 or nan during training and ) precision, recall metrics. HOT 5
- Training process killed sometimes with ultralytics v8.2.91 HOT 11
- Region counter HOT 3
- Explanation of Parameter pretrained=True HOT 3
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.