Poor results in the detection of long and thin objects #18146
Replies: 2 comments 6 replies
-
👋 Hello @Ichiruchan, thank you for sharing your detailed experience and reaching out to the Ultralytics community 🚀! We understand how tackling specific cases like segmenting elongated and thin objects can be uniquely challenging. We suggest reviewing our official Docs for insights and tips—many users have found our Model Training Tips and examples helpful for improving results. There might also be strategies applicable to your use case within our Guides section. Suggestions to Move ForwardIf this is a 🐛 Bug Report or something related to model behavior, please create a minimum reproducible example showcasing the issue you're experiencing. Providing example images or logs would be especially helpful in understanding the problem. In addition:
Community ResourcesFor further help, feel free to share your findings or brainstorm ideas with our vibrant Ultralytics community:
Verified EnvironmentsTo rule out any potential setup issues, consider running your experiments in one of our verified environments where dependencies like CUDA, Python, and PyTorch come pre-installed:
Status VerificationCheck the current status of our CI tests here: This is an automated response to guide you in the right direction 🌟. An Ultralytics engineer will also address your query soon to provide further assistance. |
Beta Was this translation helpful? Give feedback.
-
Objects that are very long and thin get removed. ultralytics/ultralytics/data/augment.py Line 1262 in d170f1a You can try modifying it to not remove those. And tey using |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I am currently facing a challenge. My goal is to segment all elongated objects in the image, which looks like this:
The red lines represent the objects. The image size is 1400 pixels in width and 300 pixels in height. The bounding box for segmentation has a width ranging from 3 to 15 pixels and a height ranging from 20 to 40 pixels. I have noticed that the detection results for objects with a width smaller than 8 pixels are poor when using the yolov8x-seg.pt model.
1.I added the p2 section to the YAML file, but the results remained unsatisfactory. When I forced the bounding box width to be greater than 8 pixels, the results improved significantly. However, this approach requires extensive code changes in YOLO.
2. I attempted to split the image into multiple sections, but result is still bad.
3. I modified the YAML file to double the size of the feature maps, but it resulted in running out of GPU memory. I also believe that the channels in the shallower layers are insufficient:
Could you give me some suggestion to improve the result.
Beta Was this translation helpful? Give feedback.
All reactions