-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reproduce YOLOv5s6 COCO mAP #9917
Comments
@hhaAndroid the discrepancy is probably due to detection vs segmentation labels. You can download segmentation labels like this, and then train a detection model:
|
@glenn-jocher Is there any difference between these two labels in the detection task? |
@glenn-jocher # random_perspective
if use_segments: # warp segments
segments = resample_segments(segments) # upsample
for i, segment in enumerate(segments):
xy = np.ones((len(segment), 3))
xy[:, :2] = segment
xy = xy @ M.T # transform
xy = xy[:, :2] / xy[:, 2:3] if perspective else xy[:, :2] # perspective rescale or affine
# clip
new[i] = segment2box(xy, width, height) Is my understanding correct? 44.8 Is |
@hhaAndroid yes segmentation labels produce more accurate box augmentations for detection models. |
Thank you very much for your reply. Does only the P6 model use the segmentation labels? Is the P5 model used? |
@hhaAndroid all models use the segmentation labels |
👋 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:
Access additional Ultralytics ⚡ resources:
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 ⭐! |
Search before asking
YOLOv5 Component
Training
Bug
I used distributed training 8 GPU 16bs per GPU to train yolov5s6 and found that the map is 44.0 or 43.9, which is much lower than the officially released 44.8. I have sync BN turned on and have updated to the latest master branch.
I don't know why? Could you please give me some help
some log
I modified it to only use coco evaluation, the 10th epoch mAP is as follows
Environment
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: