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

Trainer.py error #39

Open
smithee77 opened this issue Nov 3, 2021 · 3 comments
Open

Trainer.py error #39

smithee77 opened this issue Nov 3, 2021 · 3 comments

Comments

@smithee77
Copy link

Hi, first of all many thanks for the repo.
I'm trying to run in Colab:

!python /content/drive/MyDrive/colab-alias-free-gan/alias-free-gan/scripts/trainer.py --help

and I'm getting this error:

/usr/local/lib/python3.7/dist-packages/pytorch_lightning/core/decorators.py:17: LightningDeprecationWarning: Using pytorch_lightning.core.decorators.parameter_validation is deprecated in v1.5, and will be removed in v1.7. It has been replaced by automatic parameters tying with pytorch_lightning.utilities.params_tying.set_shared_parameters
"Using pytorch_lightning.core.decorators.parameter_validation is deprecated in v1.5, "
Traceback (most recent call last):
File "/content/drive/MyDrive/colab-alias-free-gan/alias-free-gan/scripts/trainer.py", line 19, in
from src.alias_free_gan import AliasFreeGAN
File "/content/drive/MyDrive/colab-alias-free-gan/alias-free-gan/scripts/../src/alias_free_gan.py", line 18, in
from src.model import Generator, filter_parameters
File "/content/drive/MyDrive/colab-alias-free-gan/alias-free-gan/scripts/../src/model.py", line 11, in
from src.stylegan2.model import PixelNorm, EqualLinear, EqualConv2d
File "/content/drive/MyDrive/colab-alias-free-gan/alias-free-gan/scripts/../src/stylegan2/model.py", line 18, in
from pytorch_lightning.core.decorators import auto_move_data
ImportError: cannot import name 'auto_move_data' from 'pytorch_lightning.core.decorators' (/usr/local/lib/python3.7/dist-packages/pytorch_lightning/core/decorators.py)

Is it a bug? any hint?
many thanks in advance :)

@polimorfo
Copy link

Same here, after 2 weeks of a flawless training period, yesterday the same error was thrown.

@duskvirkus
Copy link
Owner

@smithee77 @polimorfo Sorry for the delayed response use pytorch-lightning==1.4.9 when installing. I'll try to update the requirements file.

@polimorfo
Copy link

As easy as that,, Thank you @duskvirkus !

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

3 participants