-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Setting up PyTorch plugin "bias_act_plugin"... Failed! #124
Comments
Did you install the Visual Studio C++ libs are run the vcvars batch file? Those are key or you will get that error. |
I struggled to get it working on windows, although I had installed VS C++ tools and having other codes running without issues on GPU. I haven't watched that video but you can check my issue, using conda to setup the env helped and in case it still fails, deleting the cache of previous build attempts cf. the troubleshooting document. |
I'm also getting this error and have been struggling with it for months now. I've tried many different versions of pytorch, Cuda toolkit, visual studio and NVIDIA drivers from following people's advice, however, am still unable to get it working. Any help would be much appreciated. Error: The above exception was the direct cause of the following exception: Traceback (most recent call last): C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted OS: Windows 10 |
@felkoh Have you checked the version of the default cl.exe? I had a similar-looking error because the cl.exe in I use CUDA toolkit 11.6 and Visual Studio Community 2022. |
Hi @nipponjo thanks for the tip. I realised my problem was that I had both Visual Studio 2022 and 2019 installed, and even though I thought I had pointed pytorch to the 2019 version it must have been using the 2022 version by default. Uninstalling the 2022 version fixed all my issues. |
I'm having the same issue, no matter what version of build tools I use I get the same error |
Manually running |
In Ubuntu, the gcc and g++ versions mattered. My gcc version was 11. Downgrading to 9 solved the problem. Please check link : https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html |
I recently found that VS2019 community edition doesn't work with StyleGAN3 but VS2022 does. Alas, using VS2022 required some small changes. In case anyone above is struggling, this change might help: |
After struggling for days this finally fixed my issue. Make sure you don't have path variables set for other versions of visual studio. |
Hello, i've been trying to set up stylegan3 on my Windows machine but i am unable to get the program to run (stylegan3) D:\stylegan3-main>python gen_images.py --outdir=out --trunc=1 --seeds=2 --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl (im sorry the language is german) Ive tried the fixes that you mentioned the best i could but didnt get it to run |
hey everyone, i'm having similar issues as well. i made sure to install the vs c++ tools as well as run the vcvars batch file. i'm using an older version of torch to ensure compatibility with my installation of the cuda toolkit. my setup: error: The above exception was the direct cause of the following exception: Traceback (most recent call last): C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory any help will be greatly appreciated. thanks in advance :) |
I solved this problem by using stylegan3 docker https://hub.docker.com/r/maximedurand/stylegan3 |
I met a similar problem using Ubuntu 22 with Anaconda as Setting up PyTorch plugin "bias_act_plugin"... Failed! In my case, removing the nvcc solved the problem: sudo apt remove nvidia-cuda-toolkit . |
This problem makes me crazy a few days. Here share my experiment.
4.(wasting my time most!) Install the right MSVC(aka Visual Studio)
Hope these things could save your time. Good luck. |
In my case (win11) it helped to delete all the cache files here: there were a few folders called |
Ive tried everything single thing in this thread and still get the same issue.. |
this solve the issue for me Setting up PyTorch plugin "bias_act_plugin"... Failed! thanks ;) |
When I execute this code:
python gen_images.py --outdir=out --trunc=1 --seeds=2 \ --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl
I get the error Setting up PyTorch plugin "bias_act_plugin"... Failed!
I was following this tutorial https://www.youtube.com/watch?v=nmBw47ogP6w and I was doing great untill this point just before executing stylegan.
Im using a conda enviroment with pytorch cuda 11.3 windows 11 python 3.8... Need help D:
The text was updated successfully, but these errors were encountered: