Open Andredenise opened 2 years ago
I'm getting same error on a new PC setup, any luck resolving it?
No, but I changed projects and did it with the stylegan2-ada-pytorch. I checked this tutorial for it and he is now training without any issues. link: https://www.youtube.com/watch?v=BCde68k6KXg&t=904s Good luck
Same issue here, curious what does the prof from WU do? does he use the docker image?
(venv) D:\DATA\stylegan3>python gen_images.py --outdir=out --trunc=1 --seeds=2 --network=https://api.ngc.nvidia.co m/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl Loading networks from "https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r -afhqv2-512x512.pkl"... Generating image for seed 2 (0/1) ... Setting up PyTorch plugin "bias_act_plugin"... Failed! Traceback (most recent call last): File "D:\DATA\stylegan3\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1717, in _run_ninja_build subprocess.run( File "C:\Python39\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\DATA\stylegan3\gen_images.py", line 143, in
This post helped me. Not sure if it's the same issue but it now runs fine when executed through the command line
Fatal error LNK1181: cannot open input file 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\lib\x64.obj' for me
I am working on Linux platform. As for me, the problem is that the compiler cannot load libmpc.so.2
. This file is not included in standard GCC library.
To include these, I additionally included gmp-4.3.2
, mpc-0.8.1
and mpfr-2.4.2
into LD_LIBRARY_PATH
. Then the problem is solved.
Hope things above can help.
@johannwyh
I am working on Linux platform. As for me, the problem is that the compiler cannot load . This file is not included in standard GCC library. To include these, I additionally included , and into . Then the problem is solved. Hope things above can help.
libmpc.so.2``gmp-4.3.2``mpc-0.8.1``mpfr-2.4.2``LD_LIBRARY_PATH
could you please tell me how to do that?
@johannwyh
I am working on Linux platform. As for me, the problem is that the compiler cannot load . This file is not included in standard GCC library. To include these, I additionally included , and into . Then the problem is solved. Hope things above can help.
libmpc.so.2``gmp-4.3.2``mpc-0.8.1``mpfr-2.4.2``LD_LIBRARY_PATH
could you please tell me how to do that?
You can refer to this link. Just do things that are necessary, for example I think you do not need to reinstall the gcc. You should focus on installing the three packages and link it in LD_LIBRARY_PATH
I managed to run on Windows 11 the stylegan3 as following :
create the conda env: install CUDA 11.3 on the system (not sure if necessary) - make sure you have a single CUDA installed (in my case I had both 11.3 and 21.3) and I have to uninstall version 21.3 (and remove all paths to 21.3 form Env. Variables)
install cudatoolkit == 11.3.1(using conda)
install torch 1.9.0+cu111 using (pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
)
install the rest of the requirements from the environment.yml
Install Visual Studio Community 2019. Make sure you check "Desktop development with C++". "Universal Windows Platform development" was not required in my cased.
run the following bat: "C:\Program Files (x86)\Microsoft Visual Studio\
for more explanation watch this video
Can someone please help me with this issue? I have set up everything correctly as in the readme file but I always get the same outcome like this: