Closed lxrswdd closed 7 months ago
Hi,
this may have to do with a Python version mismatch. We used Python 3.8.
See this related issue in the original NCSN++ repo: https://github.com/yang-song/score_sde_pytorch/issues/16
Hi,
this may have to do with a Python version mismatch. We used Python 3.8.
See this related issue in the original NCSN++ repo: yang-song/score_sde_pytorch#16
The problem persist after I change to Python 3.8.13 No CUDA runtime is found, using CUDA_HOME='E:\Cuda' E:\Anaconda\envs\py38\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}')
Traceback (most recent call last):
File "D:\A\Pycodes\Speech enhancement and derverberation with diffusion-based generative models\sgmse-main\enhancement.py", line 10, in
Please check if torch.cuda.is_available()
is True
.
The arch_list
is supposed to be constructed with discovered architectures with torch.cuda.get_device_capability(i)
See: https://github.com/pytorch/pytorch/blob/master/torch/utils/cpp_extension.py#L1760
The problem is that if torch.cuda.device_count()
function returns 0, no CUDA card is detected, and thus no architecture is added to this list.
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.
The thing is , i have reinstalled the pytorch and CUDA in the python 3.8 environment. This C++ error comes up again. torch.cuda.is_available() is True and cuda device available is 1
It's unclear to me what the error you're experiencing is at the moment. Is it the one with where cl
returning nonzero exit status, or the one in your previous post with the arch_list[-1]
access being out of range? They're two different errors, no?
The where cl
issue seems to be a problem with Windows itself not being set up to have cl
available. You may find a solution in this issue: https://github.com/HRNet/HRNet-Semantic-Segmentation/issues/39
The NCSN++ model has some sub-modules that need to be compiled. They are dynamically compiled the first time you call the module, but you need to have a C++ compiler and CUDA's nvcc installed. For me it worked with python 3.10, so I don't think the version is so important.
@fakufaku, thanks for your comment. What cuda, cudnn, and PyTorch versions are used with Python 3.10 to make NCSN++ work? What cpp compiler are you using? tnx
@Addalin I have gcc. I think it should be version 5 or higher. Here is the one I actually have installed.
$ gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hi It appears that the model requires a C++ compiler to run. I have VS2019 on my computer but still encounter foloowing problem. I am running the codes on a Windows system. Is there any suggestion? Thanks