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

ImportError: cannot import name 'EvalResult' from 'pytorch_lightning' #1

Closed
liuxianlin opened this issue Feb 2, 2021 · 2 comments
Closed

Comments

@liuxianlin
Copy link

liuxianlin commented Feb 2, 2021

Hello, I encountered this error when configuring the environment. How can I solve it?
Traceback (most recent call last):
File "main.py", line 7, in
from source_separation.models.scripts import trainer, evaluator
File "/home/Music/ISMIR2020_U_Nets_SVS-master/source_separation/models/scripts/trainer.py", line 8, in
from source_separation.models.model_definition import get_class_by_name
File "/home/Music/ISMIR2020_U_Nets_SVS-master/source_separation/models/model_definition.py", line 3, in
from source_separation.models.tdc_net import TDC_NET_Framework
File "/home/Music/ISMIR2020_U_Nets_SVS-master/source_separation/models/tdc_net.py", line 8, in
from source_separation.models.dense_u_net import Dense_UNET_Framework, Dense_UNET
File "/home/Music/ISMIR2020_U_Nets_SVS-master/source_separation/models/dense_u_net.py", line 9, in
from source_separation.models.separation_framework import Spectrogram_based
File "/home/Music/ISMIR2020_U_Nets_SVS-master/source_separation/models/separation_framework.py", line 12, in
from pytorch_lightning import EvalResult
ImportError: cannot import name 'EvalResult' from 'pytorch_lightning' (/opt/conda/lib/python3.7/site-packages/pytorch_lightning/init.py)

@ws-choi
Copy link
Owner

ws-choi commented Feb 2, 2021

HI @liuxianlin
It seems that the version of your pytorch_lightning is not 0.9.0.
Try reinstall pl like this

pip install pytorch_lightning==0.9.0 

I'm sorry for the poor install instruction.

@liuxianlin
Copy link
Author

thanks @ws-choi
I got it.

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