Skip to content
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

[Bug] hydra.utils.instantiate can not find modules in mtrl #2926

Open
1 of 2 tasks
Liyqz opened this issue Jul 19, 2024 · 2 comments
Open
1 of 2 tasks

[Bug] hydra.utils.instantiate can not find modules in mtrl #2926

Liyqz opened this issue Jul 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Liyqz
Copy link

Liyqz commented Jul 19, 2024

🐛 Bug

Description

hydra.utils.instantiate config e.g. hydra.utils.instantiate(self.config.env.benchmark) throws hydra.errors.HydraException: Error calling xxx No module xxx. This error may be a version issue when I was trying to use mtrl. No bug if I give the precise module class to the parameter without hydra. If I use higher versions of hydra, it does not recognize the format of old version config.

Checklist

  • I checked on the latest version of Hydra
  • I created a minimal repro (See this for tips).

To reproduce

install mtrl.

Expected Behavior

hydra should load modules from the config.

System information

  • Hydra Version : hydra-core==1.0.5; hydra-submitit-launcher==1.0.1
  • Python version : 3.8.19
  • Virtual environment type and version : conda 4.8.2
  • Operating system : Ubuntu 20.04
@Liyqz Liyqz added the bug Something isn't working label Jul 19, 2024
@Liyqz Liyqz changed the title [Bug] [Bug] hydra.utils.instantiate can not find modules in mtrl Jul 19, 2024
@peterdudfield
Copy link

This might be a similar issue, but im not sure openclimatefix/uk-pvnet-app#111

@peterdudfield
Copy link

This might be a similar issue, but im not sure openclimatefix/pvnet_app#111

Sorry, mine was due to a torchvision import error, but the error didnt show up very easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants