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

The importError when runing the generate sample script #6

Open
Ding-Guo opened this issue Dec 18, 2021 · 8 comments
Open

The importError when runing the generate sample script #6

Ding-Guo opened this issue Dec 18, 2021 · 8 comments

Comments

@Ding-Guo
Copy link

When I run generate sample script,there is a importError "ImportError: /home/dzl/.cache/torch_extensions/py38_cu113/fused/fused.so: cannot open shared object file: No such file or directory"

Library version:

python 3.8.12
torch 1.10.1
cuda 11.3
ninja 1.10.2

could you tell me what your library version?
thank you

@PeterWang512
Copy link
Owner

PeterWang512 commented Dec 18, 2021

Seems related to this: rosinality/stylegan2-pytorch#5
Can you try removing the cache folder and running the script again, as described by the attached post? Thanks!
In your case, maybe try removing the torch_extensions folder?

@Ding-Guo
Copy link
Author

I have tried it again, but it didn't solve the problem, I think the trouble is the library version. And when i open the directory of the "/home/dzl/.cache/torch_extensions/py38_cu113/fused/", there is only a file "build.ninja".

@PeterWang512
Copy link
Owner

Sure, here's mine:

python 3.7.6
torch 1.7.1
cuda 10.2
ninja 1.101

Hope this helps!

@Ding-Guo
Copy link
Author

Thank you!

@Ding-Guo
Copy link
Author

I tried it again, but there is still the problem, I want to ask if the program needs a cudnn.

@kwonminki
Copy link

Did you solve the problem...? I have the same issue... :(

@Ding-Guo
Copy link
Author

No, I tried to change a lot of cuda and pytorch versions, but I still can't solve this problem under Ubuntu. The Ubuntu version I use is 20.04. Finally, I successfully run it on Windows system. The system I use is Windows 11, the gpu is RTX 3080, the cuda version is 11.3, and the nVidia graphics card driver version is 496.13.

@abdullah22842
Copy link

abdullah22842 commented Nov 25, 2023

@Ding-Guo Did you solve the problem? I have same issue...

python 3.7
GCC 7.5
Torch 1.10.1+cu102
Build cuda_11.4
ninja 1.11.1.

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

4 participants