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 the picture without the target #12585

Closed
1 task done
ZhaoMonica opened this issue Jan 5, 2024 · 4 comments
Closed
1 task done

train the picture without the target #12585

ZhaoMonica opened this issue Jan 5, 2024 · 4 comments
Labels
question Further information is requested Stale Stale and schedule for closing soon

Comments

@ZhaoMonica
Copy link

Search before asking

Question

When yolov5 training, how to train the picture without the target, there is an empty txt can be?

Additional

No response

@ZhaoMonica ZhaoMonica added the question Further information is requested label Jan 5, 2024
@glenn-jocher
Copy link
Member

@ZhaoMonica hello! 👋

Yes, you can train YOLOv5 with images that do not contain any targets. For these images, simply provide an empty .txt file with the same name as the image file. Make sure there are no spaces or lines in the .txt file; it should be completely empty. This will indicate to the model that there are no annotations for that particular image.

For more detailed guidance on training with YOLOv5, you can refer to our documentation at the Ultralytics Docs.

Happy training! 😊

@ZhaoMonica
Copy link
Author

@glenn-jocher Thank you very much for your reply, it is very helpful to me, thank you!

@glenn-jocher
Copy link
Member

You're welcome, @ZhaoMonica! I'm glad I could help. If you have any more questions or need further assistance as you work with YOLOv5, don't hesitate to reach out. Good luck with your training! 😄🚀

Copy link
Contributor

github-actions bot commented Feb 6, 2024

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

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

@github-actions github-actions bot added the Stale Stale and schedule for closing soon label Feb 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2024
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 Stale and schedule for closing soon
Projects
None yet
Development

No branches or pull requests

2 participants