-
-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window运行 ernerf 效果一直报错troch扩展编译异常 #119
Comments
ernerf文件夹下的freqencode, gridencode, raymarching, shencoder 单独编译( python setup.py install ),然后再运行就不报错了 |
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: ernerf 文件夹下单独编译,报错,请问如何解决,是版本问题吗。 |
Traceback (most recent call last):
File "E:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\utils\cpp_extension.py", line 1808, in _run_ninja_build
subprocess.run(
File "E:\soft\anaconda\envs\metahuman-stream\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1027, in find_and_load
File "", line 1006, in find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\project\metahuman-stream-main\ernerf\nerf_triplane\network.py", line 6, in
from .renderer import NeRFRenderer
File "E:\project\metahuman-stream-main\ernerf\nerf_triplane\renderer.py", line 10, in
from .. import raymarching
File "E:\project\metahuman-stream-main\ernerf\raymarching_init.py", line 1, in
from .raymarching import *
File "E:\project\metahuman-stream-main\ernerf\raymarching\raymarching.py", line 12, in
from .backend import backend
File "E:\project\metahuman-stream-main\ernerf\raymarching\backend.py", line 36, in
backend = load(name='raymarching_face',
File "E:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\utils\cpp_extension.py", line 1202, in load
return jit_compile(
File "E:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\utils\cpp_extension.py", line 1425, in jit_compile
write_ninja_file_and_build_library(
File "E:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in write_ninja_file_and_build_library
run_ninja_build(
File "E:\soft\anaconda\envs\metahuman-stream\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 -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\torch\csrc\api\include -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\TH -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" -IE:\soft\anaconda\envs\metahuman-stream\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS -U__CUDA_NO_HALF_CONVERSIONS -U__CUDA_NO_HALF2_OPERATORS -allow-unsupported-compiler -c E:\project\metahuman-stream-main\ernerf\raymarching\src\raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
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 -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\torch\csrc\api\include -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\TH -IE:\soft\anaconda\envs\metahuman-stream\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" -IE:\soft\anaconda\envs\metahuman-stream\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -allow-unsupported-compiler -c E:\project\metahuman-stream-main\ernerf\raymarching\src\raymarching.cu -o raymarching.cuda.o
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xutility(1496): error: expected a "("
detected during:
instantiation of "void std::advance(_InIt &, _Diff) [with _InIt=const int64_t *, _Diff=std::_Iter_diff_t<const int64_t *>]"
(1548): here
instantiation of "_InIt std::next(_InIt, std::_Iter_diff_t<_InIt>) [with _InIt=const int64_t *]"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vector(1161): here
instantiation of "void std::vector<_Ty, _Alloc>::_Assign_range(_Iter, _Iter, std::forward_iterator_tag) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int64_t *]"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vector(1210): here
instantiation of "std::vector<_Ty, _Alloc> &std::vector<_Ty, _Alloc>::operator=(std::initializer_list<_Ty>) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>]"
E:/soft/anaconda/envs/metahuman-stream/lib/site-packages/torch/include\ATen/core/jit_type.h(809): here
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xutility(1499): error: expected a "("
detected during:
instantiation of "void std::advance(_InIt &, _Diff) [with _InIt=const int64_t *, _Diff=std::_Iter_diff_t<const int64_t *>]"
(1548): here
instantiation of "_InIt std::next(_InIt, std::_Iter_diff_t<_InIt>) [with _InIt=const int64_t *]"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vector(1161): here
instantiation of "void std::vector<_Ty, _Alloc>::_Assign_range(_Iter, _Iter, std::forward_iterator_tag) [with _Ty=int64_t, _Alloc=std::allocator<int64_t>, _Iter=const int64_t *]"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\vector(1210): here
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: