gaussian-splatting
gaussian-splatting copied to clipboard
Fail to install diff-gaussian-rasterization
trafficstars
Hello, I've followed https://github.com/henrypearce4D advice on adding VS path to env variables, but I ran into this error:
(base) C:\Users\evebo\gaussian-splatting>git submodule update --init --recursive
Submodule path 'submodules/diff-gaussian-rasterization': checked out '59f5f77e3ddbac3ed9db93ec2cfe99ed6c5d121d'
Submodule path 'submodules/diff-gaussian-rasterization/third_party/glm': checked out '5c46b9c07008ae65cb81ab79cd677ecc1934b903'
(base) C:\Users\evebo\gaussian-splatting>pip install submodules\diff-gaussian-rasterization
Processing c:\users\evebo\gaussian-splatting\submodules\diff-gaussian-rasterization
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\evebo\gaussian-splatting\submodules\diff-gaussian-rasterization\setup.py", line 13, in <module>
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
In the gaussian-renderer init.py code there're missing imports from GaussianRasterization.
How can I resolve this? Thank you in advance!