yolov5 icon indicating copy to clipboard operation
yolov5 copied to clipboard

What's the behavior for segment "overlap" is true, but the dataset annotation exists some overlapping objects?

Open p890040 opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I have searched the YOLOv5 issues and discussions and found no similar questions.

Question

For my understanding. Training the segment model we have a option "--no-overlap".

  • If overlap is true, then mask groundtruth will be like this: 0 0 0 0 1 1 0 1 1 0 1 1 0 1 1 0 2 2 0 0 0 2 2 2 0 0 0 0 2 0 0 0 0 0 0 0 This is for 2 classes and 3 objects in one array(1,H,W).

  • In the same case, if overlap is false, then mask ground truth will be like this: Total binary array (3,H,W) First 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Second 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Third 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0

So, my question is if we have indeed overlapping annotations, what will it go if overlap setting is true?

Additional

No response

p890040 avatar Dec 08 '22 10:12 p890040

@p890040 Thanks for your hint. I have a dataset in which one class will always cover the other class. I have to set --no-overlap=True to make it work.

xjsxujingsong avatar Dec 08 '22 23:12 xjsxujingsong

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

  • Wiki – https://github.com/ultralytics/yolov5/wiki
  • Tutorials – https://docs.ultralytics.com/yolov5
  • Docs – https://docs.ultralytics.com

Access additional Ultralytics ⚡ resources:

  • Ultralytics HUB – https://ultralytics.com/hub
  • Vision API – https://ultralytics.com/yolov5
  • About Us – https://ultralytics.com/about
  • Join Our Team – https://ultralytics.com/work
  • Contact Us – https://ultralytics.com/contact

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 YOLOv5 🚀 and Vision AI ⭐!

github-actions[bot] avatar Jan 08 '23 00:01 github-actions[bot]