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

Train on images without objects #2532

Closed
hoangcuongbk80 opened this issue Mar 19, 2021 · 6 comments
Closed

Train on images without objects #2532

hoangcuongbk80 opened this issue Mar 19, 2021 · 6 comments
Labels
question Further information is requested Stale

Comments

@hoangcuongbk80
Copy link

❔Question

Does the model learn from images without objects?

Additional context

80% of my custom dataset is images without objects. Is it make sense to put these images in the training set? Or I just need to train the model on images having objects.

@hoangcuongbk80 hoangcuongbk80 added the question Further information is requested label Mar 19, 2021
@glenn-jocher
Copy link
Member

@hoangcuongbk80 YOLOv5 datasets can contain images with and without objects. If your image has no objects, it does not need a label txt file.

@hoangcuongbk80
Copy link
Author

hoangcuongbk80 commented Mar 20, 2021

@glenn-jocher

Thanks for your reply.

I mean does the model learn anything from images without objects (empty)? or it just ignores these images.

@kinoute
Copy link
Contributor

kinoute commented Mar 20, 2021

@hoangcuongbk80 It helps to reduce the number of False Positives. You can see a full answer here: #2313 (comment)

@hoangcuongbk80
Copy link
Author

@kinoute Thank you, it's clear now.

@glenn-jocher
Copy link
Member

Loss is computed on all images regardless of contents.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

3 participants