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

package version #8

Open
KunChenUSTC opened this issue Dec 6, 2021 · 4 comments
Open

package version #8

KunChenUSTC opened this issue Dec 6, 2021 · 4 comments

Comments

@KunChenUSTC
Copy link

Hi!
I want to train an autoencoder, and run the train_code_finder.py code. In your README.md, the python version should be >=3.8, while in your requirements.txt you need kornia==0.3.1. This is kind of confusing when I tried to install kornia==0.3.1 and found kornia==0.3.1 did not support python>=3.8.0. So what am I missing, or what can I do to make it work?
Thank you very much!

@Bartzi
Copy link
Owner

Bartzi commented Dec 6, 2021

Hi,

this is indeed very odd. Could you provide me with the exact error?

@KunChenUSTC
Copy link
Author

Hi,
This is the error that occurred when I tried to install 'kornia'.
lALPJxf-vEbS2A3NAg3NAvg_760_525
And I have a RuntimeError:
Unknown type name 'torch.dtype': File "E:\anaconda\envs\one-model-to-reconstruct-them-all-main\lib\site-packages\kornia\utils\grid.py", line 12.
This one occurred in trian_code_finder.py line 14, in 'from evaluation.autoencoder_evaluation import AutoEncoderEvalFunc'

@Bartzi
Copy link
Owner

Bartzi commented Dec 6, 2021

I see you are using anaconda. This could be the problem because according to the Kornia release notes it should support Python 3.8. If it really does not work, you can try to use newer versions of Kornia. However, there might be problems with the SSIM calculation.

If you use the provided Dockerfile to build a docker container, it should work. If not I'll have to take a closer look but this might take some time.

@KunChenUSTC
Copy link
Author

Thanks a lot! I will try the Dockerfile way!

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