Open manan-cashfree opened 1 year ago
Can you please make sure your directory structure is correct? For instance I don't see train_transforms.py
in it. I also don't see any __init__.py
under src
which normally should prevent any instantiation from that folder since it's not a proper Python module.
Finally fixed the issue. In the __init__.py
file of components, it should be from .transforms import *
. Thanks for the support.
Glad you found it! :)
π Bug
Description
Search path issues during instantiation.
To reproduce
Minimal Code/Config snippet to reproduce directory structure:
Hydra config:
src and all paths have been correctly configured. No issues there. But as soon as I instantiate, there is some weird path issue. This doesn't happen otherwise.
Stack trace/error message
Expected Behavior
Imports should be correctly handled. Upon removing the import train_transforms, I am able to initialize.
System information
Additional context
Hydra sucks in a lot of stuff. Or perhaps it is too complex for me. I just tried using a pytorch lightning template and found that it doesn't handle such basic stuff.