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
Hi!
Yesterday I felt that I was able to enjoy stylegan2-pytorch thoroughly and happily.
As a result, when I ran apply_factor.py and generate.py today, the following error occurred:
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1'
Traceback (most recent call last):
File "generate.py", line 5, in
from model import Generator
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\model.py", line 11, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\op_init_.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\op\fused_act.py", line 15, in
os.path.join(module_path, "fused_bias_act_kernel.cu"),
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 661, in load
is_python_module)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 830, in _jit_compile
with_cuda=with_cuda)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 879, in _write_ninja_file_and_build
with_cuda=with_cuda)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1114, in _write_ninja_file
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + get_cuda_arch_flags()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 977, in get_cuda_arch_flags
capability = torch.cuda.get_device_capability()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 328, in get_device_capability
prop = get_device_properties(device)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 334, in get_device_properties
init() # will define _get_device_properties and CudaDeviceProperties
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 164, in init lazy_init()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 192, in _lazy_init check_driver()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 95, in _check_driver
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
Some of the solutions found are to change the GPU running of the code to CPU running, but we have all successfully used the GPU before, and are suddenly forced to only use the CPU.Aren't we wasting resources?
And, reinstall pytorch, torchvision, and cudatoolkit:
conda uninstall pytorch torchvision cudatoolkit=10.1 pytorch
I tried to delete it and install it but it still doesn't work.
And today, NVIDIA in the lower right corner of win10 prompts that the graphics card driver can be upgraded, I clicked it, I don't know if it is installed, but I think my graphics card driver is always 460, there should be no changes, I don't know if it is affected.
Unexpectedly, some careless operations may affect such an important stylegan2-pytorch to fail to run, which is really terrible.
The text was updated successfully, but these errors were encountered:
Hi!
Yesterday I felt that I was able to enjoy stylegan2-pytorch thoroughly and happily.
As a result, when I ran apply_factor.py and generate.py today, the following error occurred:
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1'
Traceback (most recent call last):
File "generate.py", line 5, in
from model import Generator
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\model.py", line 11, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\op_init_.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "C:\MyWork\My_GAN_Work\stylegan2-pytorch-master\op\fused_act.py", line 15, in
os.path.join(module_path, "fused_bias_act_kernel.cu"),
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 661, in load
is_python_module)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 830, in _jit_compile
with_cuda=with_cuda)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 879, in _write_ninja_file_and_build
with_cuda=with_cuda)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1114, in _write_ninja_file
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + get_cuda_arch_flags()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 977, in get_cuda_arch_flags
capability = torch.cuda.get_device_capability()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 328, in get_device_capability
prop = get_device_properties(device)
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 334, in get_device_properties
init() # will define _get_device_properties and CudaDeviceProperties
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 164, in init
lazy_init()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 192, in _lazy_init
check_driver()
File "C:\Users\Creator\miniconda3\envs\SG2_Pytorch\lib\site-packages\torch\cuda_init.py", line 95, in _check_driver
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
Some of the solutions found are to change the GPU running of the code to CPU running, but we have all successfully used the GPU before, and are suddenly forced to only use the CPU.Aren't we wasting resources?
And, reinstall pytorch, torchvision, and cudatoolkit:
conda uninstall pytorch torchvision cudatoolkit=10.1 pytorch
I tried to delete it and install it but it still doesn't work.
And today, NVIDIA in the lower right corner of win10 prompts that the graphics card driver can be upgraded, I clicked it, I don't know if it is installed, but I think my graphics card driver is always 460, there should be no changes, I don't know if it is affected.
Unexpectedly, some careless operations may affect such an important stylegan2-pytorch to fail to run, which is really terrible.
The text was updated successfully, but these errors were encountered: