-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
After changing path of dataset, validation still searching image on old location #3349
Comments
I just notice that the valid.cache file has not been reinitalized when change location of the dataset, while the train yes. So i just remove it and see if something changed. |
@GiorgioSgl thanks for the bug report! Yes this happening because the cache file saved the older directories, I should update the cache hash to recognize changes in dataset location in addition to dataset contents. |
Yeah that will be amazing! Thanks for the fast answer. |
@GiorgioSgl good news 😃! Your original issue may now be fixed ✅ in PR #3350. This PR implements a new
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 🚀! |
Gracias tío! El mejor de verdad! |
* Update cache v0.2 to include parent hash Possible fix for ultralytics#3349 * Update datasets.py (cherry picked from commit c6b5bfc)
* Update cache v0.2 to include parent hash Possible fix for ultralytics#3349 * Update datasets.py
* Update cache v0.2 to include parent hash Possible fix for ultralytics/yolov5#3349 * Update datasets.py
* Update cache v0.2 to include parent hash Possible fix for ultralytics/yolov5#3349 * Update datasets.py
🐛 Bug
The bug is caused by the valid partition of the dataset. Actually I'm working with the OpenImage dataset of Google. The problem is very easy: I change the OS where I'm training, I pass to windows so all directory change and I can put the dataset in the same location, so what I have done is changin the data.yaml and change the derictory of the dataset. It's okay for the training but it's not okay for the Valid.
In the frist epochs is doing the training with train test without any problem, but when it's the time of the valid it's searching images on the old location. And is giving me an error sayng that it can find the first image of the valid set.
To Reproduce
Just use the train.py, change location of the dataset and also fo the data.yaml file
Output
Expected behavior
Work with the new location define in the data.yaml and not the old one
Environment
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: