maturk / dn-splatter

DN-Splatter: Depth and Normal Priors for Gaussian Splatting and Meshing
https://maturk.github.io/dn-splatter/
Apache License 2.0
449 stars 28 forks source link

train error: ninja: build stopped: subcommand failed. #82

Open Knni9ht opened 3 hours ago

Knni9ht commented 3 hours ago

deviece:win11 installation: conda create --name nerfstudio -y python=3.8 conda activate nerfstudio python -m pip install --upgrade pip pip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch git clone https://github.com/maturk/dn-splatter cd dn_splatter/ pip install setuptools==69.5.1 pip install -e . after installation,i runed with ns-train dn-splatter,but met errors below: ImportError: cannot import name 'csrc' from 'gsplat' ......... ninja: build stopped: subcommand failed.

Knni9ht commented 3 hours ago

it looks like c00270d82cca02c5d2485c366e452f28

maturk commented 1 hour ago

@Knni9ht. Looks like something is wrong when trying to build the gsplat dependency.

Can you try running pip install gsplat==1.0.0 and then ns-train again.

Alternatively you can attempt to manually install gsplat using the following instructions:

git clone --recurse-submodules https://github.com/nerfstudio-project/gsplat/
cd ./gsplat
git checkout c7b0a38
pip install -e .

This clones the gsplat repo, switches to the v1.0.0 version, and installs it. Note, this repo currenly only supports gsplat v1.0.0.

Note, I am not a windows user, so I am not entirely sure what kind of issues the Windows OS can get when installing gsplat.

Let me know if any of these instructions help. The main thing is just to try and install the gsplat dependency, and make sure it is v1.0.0, then dn-splatter will work for you.