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)
- Keypoint colors do not match with classes HOT 12
- Deformable convolutions HOT 1
- How to validate a model with the modified JSON fileοΌ HOT 6
- Utilize ultralytics.YOLO or PyTorch to Extract Bounding Boxes from YOLOv4 Darknet HOT 2
- Unable to export RT-DETR model to TFLite or EdgeTPU HOT 4
- Unable to explain validation results, different from prediction HOT 2
- Sort bounding boxes HOT 10
- Documentation mismatch in val.py#L200-L214 HOT 4
- export error HOT 4
- Extracting Keypoint IDs (an, if possible, Keypoint Labels) in YOLOv8 for Pose Estimation HOT 9
- New YOLOv# Format for Pose Estimation with Keypoints Labels HOT 2
- Error after running make and ./Yolov8CPPInference in C++ HOT 3
- rtdetr fp16 inference HOT 4
- Simple question: How can I check the visual result of tracking video in Colab? HOT 2
- got an unexpected keyword argument 'allow_empty HOT 3
- How to publish an application to the client in python and run it using the GPU HOT 13
- When predicting, does yolov8's behavior change when there are different sized images in the input image list? HOT 2
- Yolov9 onnx export HOT 3
- Trainning not improving: Decreasing mAP and Early Stopping at Epoch 100 HOT 1
- Training on a new dataset based on best.pt HOT 7
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.