-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
[Colab] cannot import name 'filter2d' from 'kornia' #102
Comments
It seems to be connected with the release 0.6.1 on Kornia (Oct 22nd), where they refactored the library namespaces. I think filter2d is now under kornia.filters instead of directly under kornia. This causes the training and generation functions of lightweightGAN to crash. In the meantime you can continue training / generating by reverting to the previous release on Kornia: FYI @lucidrains |
Thank you @arturocalvoacn. Indeed downgrading to kornia 0.5.4 fixes the issue. |
This was fixed with the latest release |
I'm having the same problem, I fixed it by changing
from kornia.filters import filter2d .
|
Hi
Training on google Colab Pro, I started getting this error:
Traceback (most recent call last):
File "/usr/local/bin/lightweight_gan", line 5, in
from lightweight_gan.cli import main
File "/usr/local/lib/python3.7/dist-packages/lightweight_gan/init.py", line 1, in
from lightweight_gan.lightweight_gan import LightweightGAN, Generator, Discriminator, Trainer, NanException
File "/usr/local/lib/python3.7/dist-packages/lightweight_gan/lightweight_gan.py", line 25, in
from kornia import filter2d
ImportError: cannot import name 'filter2d' from 'kornia' (/usr/local/lib/python3.7/dist-packages/kornia/init.py)
Before that everything worked fine for several weeks
The text was updated successfully, but these errors were encountered: