sharinka0715 / semantic-gaussians

Official implemetation of the paper "Semantic Gaussians: Open-Vocabulary Scene Understanding with 3D Gaussian Splatting".
MIT License
143 stars 11 forks source link

About requirements installation #3

Closed king1111sadjfoisja closed 5 months ago

king1111sadjfoisja commented 5 months ago

Dear Author: Some problems occured when I tried to install the requirements needed:In installing submodules/rgb-rasterization,submodules/rgbd-rasterization,submodules/channel-rasterization,submodules/semantic-rasterization, the program has the following error,while submodules/simple-knn and submodules/segment-anything are successfully installed: `Running setup.py clean for channel_rasterization Building wheel for semantic_rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [105 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-39 creating build/lib.linux-x86_64-cpython-39/semantic_rasterization copying semantic_rasterization/init.py -> build/lib.linux-x86_64-cpython-39/semantic_rasterization running build_ext /home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py:414: UserWarning: The detected CUDA version (11.6) has a minor version mismatch with the version that was used to compile PyTorch (11.8). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'semantic_rasterization._C' extension creating /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39 creating /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer Emitting ninja build file /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/5] /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/backward.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/backward.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 In file included from /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/backward.cu:12: /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/backward.h:19:10: 致命错误:glm/glm.hpp:没有那个文件或目录 19 | #include <glm/glm.hpp> | ^~~~~ 编译中断。 [2/5] /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/forward.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/forward.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 In file included from /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/forward.cu:12: /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/forward.h:19:10: 致命错误:glm/glm.hpp:没有那个文件或目录 19 | #include <glm/glm.hpp> | ^~~~~ 编译中断。 [3/5] /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 FAILED: /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/cuda_rasterizer/rasterizer_impl.cu:23:10: 致命错误:glm/glm.hpp:没有那个文件或目录 23 | #include <glm/glm.hpp> | ^~~~~ 编译中断。 [4/5] c++ -MMD -MF /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/ext.o.d -pthread -B /home/gdut403/anaconda3/envs/gasp/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/gdut403/anaconda3/envs/gasp/include -fPIC -O2 -isystem /home/gdut403/anaconda3/envs/gasp/include -fPIC -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/ext.cpp -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/ext.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 [5/5] /usr/local/cuda-11.6/bin/nvcc -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/TH -I/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/gdut403/anaconda3/envs/gasp/include/python3.9 -c -c /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/rasterize_points.cu -o /home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++17 ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build subprocess.run( File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/subprocess.py", line 528, 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 "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/home/gdut403/HK/semantic-gaussians-main/submodules/semantic-rasterization/setup.py", line 18, in <module>
      setup(
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/__init__.py", line 104, in setup
      return distutils.core.setup(**attrs)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 132, in run
      self.run_command(cmd_name)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
      super().run_command(command)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 91, in run
      _build_ext.run(self)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 873, in build_extensions
      build_ext.build_extensions(self)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
      self._build_extensions_serial()
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 252, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
      objects = self.compiler.compile(
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 686, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/gdut403/anaconda3/envs/gasp/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2116, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for semantic_rasterization`

I have searched the Internet a lot but couldn't find a suitable solution.Have you encountered this kind of problem before?Could you offer me some help? Any help is greatly appreciated!