Skip to content
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

conf_thres increased and then recall increases, data problem or others ? #7864

Closed
1 task done
carptainhao opened this issue May 18, 2022 · 4 comments
Closed
1 task done
Labels
question Further information is requested Stale

Comments

@carptainhao
Copy link

Search before asking

Question

Hello, when I use val.py to test badcase data, I increase conf_thres and recall increases. I have not encountered such a problem on the original divided test set. Is this a data problem?

Additional

No response

@carptainhao carptainhao added the question Further information is requested label May 18, 2022
@glenn-jocher
Copy link
Member

@carptainhao val.py is invalid for any confidence threshold higher than the default. This is displayed to users here:

yolov5/val.py

Lines 364 to 365 in 9a7f289

if opt.conf_thres > 0.001: # https://github.com/ultralytics/yolov5/issues/1466
LOGGER.info(f'WARNING: confidence threshold {opt.conf_thres} >> 0.001 will produce invalid mAP values.')

@carptainhao
Copy link
Author

But if i increase the confidence threshold, the result of recall is also invalid?

@carptainhao val.py is invalid for any confidence threshold higher than the default. This is displayed to users here:

yolov5/val.py

Lines 364 to 365 in 9a7f289

if opt.conf_thres > 0.001: # https://github.com/ultralytics/yolov5/issues/1466
LOGGER.info(f'WARNING: confidence threshold {opt.conf_thres} >> 0.001 will produce invalid mAP values.')

@glenn-jocher
Copy link
Member

@carptainhao I don't know. In any case P and R are computed for all confidences and plotted as curves by val.py, i.e.:
image
image

@github-actions
Copy link
Contributor

github-actions bot commented Jun 18, 2022

👋 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 ⭐!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants