-
Notifications
You must be signed in to change notification settings - Fork 136
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 from cache without dataset needs to be updated #128
Comments
You are correct, the scenario name was added to the cache during that release. If you regenerate the cache, it should have the proper structure. At the moment, we do not enforce backward compatibility for cache structures, so if the devkit is updated, caches will have to be regenerated. We may revisit this once the devkit becomes more stable. |
Regenerating the cache does not solve this issue because since the last release the cache is structured as follows |
This fix helped me out as well! So I guess it's still relevant. |
This fix helped me on 2023 03 20 Can't believe this issue is open for half a year |
Describe the bug
Training from cache without dataset (by setting
cache.use_cache_without_dataset=true
) does no longer work. The reason for this is that the structure of the cache path was updated by putting each scenario-type in a separate folder. When loading scenarios from cache this is not considered so far.The bug can be fixed by changing this line from
candidate_scenario_dirs = [path for log_dir in cache_dir.iterdir() for path in log_dir.iterdir()]
to
candidate_scenario_dirs = [path for log_dir in cache_dir.iterdir() for type_dir in log_dir.iterdir() for path in type_dir.iterdir()]
Setup
Steps To Reproduce
Steps to reproduce the behavior:
cache.use_cache_without_dataset=true
Stack Trace
The text was updated successfully, but these errors were encountered: