ZPdesu / Barbershop

Barbershop: GAN-based Image Compositing using Segmentation Masks (SIGGRAPH Asia 2021)
https://zpdesu.github.io/Barbershop/
MIT License
1.35k stars 265 forks source link

In WIN10 anaconda error #39

Open ffdown opened 2 years ago

ffdown commented 2 years ago

e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py:322: 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 "main.py", line 13, in from models.Embedding import Embedding File "C:\Users\user\Barbershop\models\Embedding.py", line 3, in from models.Net import Net File "C:\Users\user\Barbershop\models\Net.py", line 3, in from models.stylegan2.model import Generator File "C:\Users\user\Barbershop\models\stylegan2\model.py", line 11, in from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d File "C:\Users\user\Barbershop\models\stylegan2\op__init__.py", line 1, in from .fused_act import FusedLeakyReLU, fused_leaky_relu File "C:\Users\user\Barbershop\models\stylegan2\op\fused_act.py", line 14, in os.path.join(module_path, "fused_bias_act_kernel.cu"), File "e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py", line 1156, in load keep_intermediates=keep_intermediates) File "e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py", line 1367, in _jit_compile is_standalone=is_standalone) File "e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py", line 1465, in _write_ninja_file_and_build_library is_standalone=is_standalone) File "e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py", line 1908, in _write_ninja_file_to_build_library with_cuda=with_cuda) File "e:\Anaconda3\envs\env_Sid\lib\site-packages\torch\utils\cpp_extension.py", line 2024, in _write_ninja_file 'cl']).decode(*SUBPROCESS_DECODE_ARGS).split('\r\n') File "e:\Anaconda3\envs\env_Sid\lib\subprocess.py", line 411, in check_output **kwargs).stdout File "e:\Anaconda3\envs\env_Sid\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.