graphdeco-inria / reduced-3dgs

The code for the paper "Reducing the Memory Footprint of 3D Gaussian Splatting"
Other
55 stars 3 forks source link

problem #8

Open jgghjgj opened 1 week ago

jgghjgj commented 1 week ago

Processing c:\users\17673\desktop\3dgs_2.0\reduced-3dgs-main\submodules\diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel C:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:495: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build\lib.win-amd64-3.11 creating build\lib.win-amd64-3.11\diff_gaussian_rasterization copying diff_gaussian_rasterization__init.py -> build\lib.win-amd64-3.11\diff_gaussian_rasterization running build_ext C:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:380: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'diff_gaussian_rasterization._C' extension creating build\temp.win-amd64-3.11 creating build\temp.win-amd64-3.11\Release creating build\temp.win-amd64-3.11\Release\cuda_rasterizer creating build\temp.win-amd64-3.11\Release\reduced_3dgs C:\anaconda\Lib\site-packages\torch\utils\cpp_extension.py:1965: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc -c cuda_rasterizer/backward.cu -o build\temp.win-amd64-3.11\Release\cuda_rasterizer/backward.obj -IC:\anaconda\Lib\site-packages\torch\include -IC:\anaconda\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\anaconda\Lib\site-packages\torch\include\TH -IC:\anaconda\Lib\site-packages\torch\include\THC -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include -IC:\anaconda\include -IC:\anaconda\Include -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 /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\17673\Desktop\3dgs_2.0\reduced-3dgs-main\submodules\diff-gaussian-rasterization\third_party/glm/ --disable-warnings -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 --use-local-env nvcc fatal : Cannot find compiler 'cl.exe' in PATH error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (diff-gaussian-rasterization)

PanagiotisP commented 1 week ago

Hi. I think the problem is that the cmd doesn't have access to the MSVC compiler, as indicated here

nvcc fatal : Cannot find compiler 'cl.exe' in PATH

Try to open it from a VS command prompt