-
-
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
The question with repeated training #13211
Comments
@arkerman hi there! Thank you for your question. You can indeed continue training your model with the new set of images without starting from scratch. Here's how you can do it:
This command will load your existing weights and continue training with the combined dataset of old and new images. If you encounter any issues, please ensure you are using the latest version of YOLOv5 by pulling the latest changes from the repository and updating your dependencies. Feel free to reach out if you have any more questions or run into any issues. Happy training! 😊 |
@glenn-jocher Hi, really appreciate your reply and valuable advice! |
@arkerman, thank you for your follow-up question! I'm glad to assist further. Continuing training with additional images while retaining previously learned features is a common practice in transfer learning. When you resume training using the Here are a few key points to ensure optimal results:
By following these steps, you can effectively continue training your model with new images while retaining the ability to detect previously learned features. If you have any more questions or need further assistance, feel free to ask. Happy training! 😊 |
Thanks a lot dude! @glenn-jocher |
You're very welcome! 😊 I'm glad to hear that you found the suggestions helpful. Experimenting with different strategies is a great way to fine-tune your model and achieve the best results. If you encounter any issues or have further questions during your experiments, feel free to reach out here. The YOLO community and the Ultralytics team are always here to help. Happy training, and best of luck with your project! 🚀 P.S. If you haven't already, you might find additional useful tips in our Tips for Best Training Results guide. It covers various aspects of dataset preparation, model selection, and training settings to help you get the most out of YOLOv5. |
Search before asking
Question
I now have 100 defect images. I first used the pre-trained model of yolov5s to train and get best.pt. After a week, I have another 100 images. I don’t want to add up the 100 images twice and re-train them. Instead, I want to keep the weights of best.pt and only train the next 100 images. What do I need to do?
Additional
No response
The text was updated successfully, but these errors were encountered: