You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I met this problem and I have solved it by myself. I recorded here and hope it can help future users.
My PC uses Ubuntu 18.04. After installing the environment and downloading data, I got ' ImportError: torch.utils.ffi is deprecated... ' when running the main.py.
Possible cause: pytorch is 1.3 rather than 0.4.
Using conda list in the environment, I see pytorch is version 0.4. However, if I use python to import torch and print its version, it is 1.3!!!!
Long story short->
My guess: It seems that the pytorch install during 'conda env create -f environment.yml' has a name 0.4 but is actually 1.3.
My Solution: manually downloading from https://download.pytorch.org/whl/torch_stable.html and then install with pip under the virtual environment.
The text was updated successfully, but these errors were encountered:
Hi all,
I met this problem and I have solved it by myself. I recorded here and hope it can help future users.
My PC uses Ubuntu 18.04. After installing the environment and downloading data, I got ' ImportError: torch.utils.ffi is deprecated... ' when running the main.py.
Possible cause: pytorch is 1.3 rather than 0.4.
Using conda list in the environment, I see pytorch is version 0.4. However, if I use python to import torch and print its version, it is 1.3!!!!
Long story short->
My guess: It seems that the pytorch install during 'conda env create -f environment.yml' has a name 0.4 but is actually 1.3.
My Solution: manually downloading from https://download.pytorch.org/whl/torch_stable.html and then install with pip under the virtual environment.
The text was updated successfully, but these errors were encountered: