-
Notifications
You must be signed in to change notification settings - Fork 690
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
Set transformations from the config file #990
Set transformations from the config file #990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is very useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the changes to this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you perform HPO sweeps on colab, the GPU memory isn't freed after each run and accumulates over time. To solve this, the model needs to be deleted and torch cache has to be cleared:
https://stackoverflow.com/a/57569472/11951277
@alexriedel1, not sure you noticed, but pre-commit checks failed due to the following error
|
yess, working on it :) |
from the failing pre-commit checks:
Thats not on my side right? |
No, it sometimes happens when the coverage is uploaded to codecov. The tests pass. We could merge this. Thanks again! :) |
Hi can you give some more examples of how to do this. I have been searching for transform config but to no avail. I found your method but the yaml parser always fails to parse. Thanks |
Do you have installed the latest version? What exact errors are you getting? |
Ah my bad i was on the release version, now I have installed this dev version, it works. Thanks |
This PR allows to define image augmentations and transforms that are part of the albumentations module to be defined in the model config file.
This becomes possible now:
It not only helps readability but also allows for image augmentations to be used in HPO sweeps