lipku / metahuman-stream

Real time interactive streaming digital human
https://livetalking-doc.readthedocs.io/
Apache License 2.0
3.45k stars 481 forks source link

运行app.py时错误 #188

Open RuizhePang opened 1 month ago

RuizhePang commented 1 month ago

image Traceback (most recent call last): File "E:\Code\Python\metahuman-stream\app.py", line 351, in from ernerf.nerf_triplane.network import NeRFNetwork File "E:\Code\Python\metahuman-stream\ernerf\nerf_triplane\network.py", line 6, in from .renderer import NeRFRenderer File "E:\Code\Python\metahuman-stream\ernerf\nerf_triplane\renderer.py", line 10, in from .. import raymarching File "E:\Code\Python\metahuman-stream\ernerf\raymarching__init.py", line 1, in from .raymarching import * File "E:\Code\Python\metahuman-stream\ernerf\raymarching\raymarching.py", line 12, in from .backend import _backend File "E:\Code\Python\metahuman-stream\ernerf\raymarching\backend.py", line 31, in _backend = load(name='_raymarching_face', File "C:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1202, in load return _jit_compile( File "C:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1425, in _jit_compile _write_ninja_file_and_build_library( File "C:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in _write_ninja_file_and_build_library _run_ninja_build( File "C:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1824, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension '_raymarching_face': [1/2] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc --generate-dependencies-with-compile --dependency-output raymarching.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include -IC:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include\TH -IC:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" -IC:\Users\pawn0.conda\envs\nerfstream\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c E:\Code\Python\metahuman-stream\ernerf\raymarching\src\raymarching.cu -o raymarching.cuda.o FAILED: raymarching.cuda.o rs\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include\TH -IC:\Users\pawn0.conda\envs\nerfstream\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" -IC:\Users\pawn0.conda\envs\nerfstream\Include -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS__ -c E:\Code\Python\metahuman-stream\ernerf\raymarching\src\raymarching.cu -o raymarching.cuda.o nvcc fatal : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/../../../../../../../VC/Auxiliary/Build/vcvars64.bat' ninja: build stopped: subcommand failed. 错误如上。环境是已经配置过了的,vcvars64.bat文件的路径也没有问题。

Eggwardhan commented 1 month ago

这写着 环境还是有问题啊

RuizhePang commented 1 month ago

这写着 环境还是有问题啊

根据报错信息分析的是,nvcc根据 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX86/x64/../../../../../../../VC/Auxiliary/Build/vcvars64.bat'找不到vcvars64.bat文件,但是这个文件的路径没有错啊