-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
I want to overwrite and save the analysis results #9522
Comments
I'm not sure if using the --name argument with detect.py will overwrite previous results (of the same name) For this issue- rather than writing to text files, I log the infererence results to a time-series database (I used Influx) |
You can use —exist-ok to overwrite existing logging directory |
Thank you everybody. I'm not using detect.py. I'm using the code below in my original. model = torch.hub.load('xxxxxxx') imgs = ['./image.jpg'] When you execute results.save(), the exp folder will increase. Isn't there an option like "model.classes = [0]"? |
@kazuya-uchida results.save(save_dir='path/to/save_dir') |
@kazuya-uchida good news 😃! Your original issue may now be fixed ✅ in PR #9617. Now you can pass To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
@glenn-jocher I have verified that it works as expected! |
@Heartful-echo i'm glad to hear that it's working as expected for you! 😊 If you have any more questions or need further assistance, feel free to ask. Happy coding and have a great day! 🚀 |
Search before asking
Question
Hi
Analysis results are stored in the exp folder of the run folder, but the exp folder increases each time analysis is performed. For example exp1⇨exp2.
Is it possible to fix this exp folder and always overwrite the analysis results?
Additional
No response
The text was updated successfully, but these errors were encountered: