lyx0208 / 3dSwap

Code and project page for "3D-aware Face Swapping" in CVPR 2023
70 stars 3 forks source link

python run_3dSwap.py #11

Open qym77 opened 3 months ago

qym77 commented 3 months ago

F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') 信息: 用提供的模式无法找到文件。

qym77 commented 3 months ago

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 "run_3dSwap.py", line 2, in from models.faceswap_coach import FaceSwapCoach File "C:\Users\q1m\Desktop\3dSwap\models\faceswap_coach.py", line 1, in from models.encoders.psp_encoders import GradualStyleEncoder File "C:\Users\q1m\Desktop\3dSwap\models\encoders\psp_encoders.py", line 8, in from models.stylegan2.model import EqualLinear File "C:\Users\q1m\Desktop\3dSwap\models\stylegan2\model.py", line 7, in from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d File "C:\Users\q1m\Desktop\3dSwap\models\stylegan2\op__init__.py", line 1, in from .fused_act import FusedLeakyReLU, fused_leaky_relu File "C:\Users\q1m\Desktop\3dSwap\models\stylegan2\op\fused_act.py", line 9, in fused = load( File "F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py", line 1079, in load return _jit_compile( File "F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py", line 1292, in _jit_compile _write_ninja_file_and_build_library( File "F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py", line 1391, in _write_ninja_file_and_build_library _write_ninja_file_to_build_library( File "F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py", line 1823, in _write_ninja_file_to_build_library _write_ninja_file( File "F:\anaconda3\envs\3dSwap\lib\site-packages\torch\utils\cpp_extension.py", line 1947, in _write_ninja_file cl_paths = subprocess.check_output(['where', File "F:\anaconda3\envs\3dSwap\lib\subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "F:\anaconda3\envs\3dSwap\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.

sorry,new to code,after some difficult install all the requirements,then i run python run_3dSwap.py have some problem,how can i fix it?or how can i understand errors maybe?because i no nothing about this error i guess

takuphilchan commented 3 months ago

@qym77 The problem is that it can't locate the compiler in your system. Try to check if it's installed if not install Visual Studio C++ compiler and add it to system paths then try again.