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

pytorch_lightning version #3

Closed
csabapol opened this issue Mar 31, 2022 · 1 comment
Closed

pytorch_lightning version #3

csabapol opened this issue Mar 31, 2022 · 1 comment

Comments

@csabapol
Copy link

Hi @jlko
great results and repository! Using the provided environment file, I get the following error when running the examples:

.../non-parametric-transformers/npt/loss.py", line 5, in
from pytorch_lightning.metrics.functional import auroc as lightning_auroc
ModuleNotFoundError: No module named 'pytorch_lightning.metrics'

My environment has pytorch lightning 1.6.0, and it seems to me the repository structure had changed, Could you provide the correct version of the package, perhaps update the environment.yml for compatibility?
Thanks!

@jlko
Copy link
Collaborator

jlko commented Apr 1, 2022

Hi @csabapol,

Thanks for reaching out.

You're right, torchmetrics have changed their interface and the new import should be

from torchmetrics.functional import auroc as lightning_auroc.

I'll push an update to the main brunch to fix this.
Let me know if this works for and if there is anything else we can do to help!

@jlko jlko closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants