-
Notifications
You must be signed in to change notification settings - Fork 451
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
cannot import name 'gpu' from partially initialized module 'encoding' #403
Comments
(base) aleymane@aleymane-To-be-filled-by-O-E-M:~/下载/PyTorch-Encoding-master/experiments/segmentation$ python test.py --dataset ADE20K --model-zoo EncNet_ResNet50s_ADE --eval |
hello,i encountered the same problem, how did you solve this problem finally。thank you very much |
Did you compile the library with GPU? |
i used this command,
Requirement already satisfied: scipy in ./anaconda3/lib/python3.8/site-packages (from torch-encoding==1.2.2b20210831) (1.6.2) and i tried several times. also reinstalled the ubuntu system,but still not work. thank you very much |
I met the same problem and found out it is because I forgot to install CUDA. After the installation problem should be solved. You can use "nvcc --version" to check out whether CUDA is installed correctly. |
@hentaitommy can you explain what you mean by installing CUDA? I have the same problem. Thanks! |
@XAVILLA @hentaitommy, did either of you figure this out? I have confirmed that I have CUDA installed with the following: $ nvcc --version But I still get the error: |
A possible reason could be that you've installed an older version of this package. You may try |
When I run the following code:
python test.py --dataset ADE20K --model-zoo EncNet_ResNet50s_ADE --eval
I miss the error and i can't fix it :
ImportError: cannot import name 'gpu' from partially initialized module 'encoding' (most likely due to a circular import) (/home/aleymane/anaconda3/lib/python3.8/site-packages/torch_encoding-1.2.2b20210718-py3.8-linux-x86_64.egg/encoding/init.py)
The text was updated successfully, but these errors were encountered: