hustvl / GaussianDreamer

GaussianDreamer: Fast Generation from Text to 3D Gaussians by Bridging 2D and 3D Diffusion Models (CVPR 2024)
https://taoranyi.com/gaussiandreamer/
Apache License 2.0
589 stars 29 forks source link

threestudio import error #5

Closed dangerweenie closed 8 months ago

dangerweenie commented 8 months ago

I was able to installe everything without error, but am now getting this error when launching:

S:\GitHub\GaussianDreamer>python launch.py --config configs/gaussiandreamer-sd.yaml --train --gpu 0 system.prompt_processor.prompt="a fox" Traceback (most recent call last): File "S:\GitHub\GaussianDreamer\launch.py", line 239, in main(args, extras) File "S:\GitHub\GaussianDreamer\launch.py", line 74, in main import threestudio File "S:\GitHub\GaussianDreamer\threestudioinit.py", line 36, in from . import data, models, systems File "S:\GitHub\GaussianDreamer\threestudio\datainit.py", line 1, in from . import co3d, image, multiview, uncond File "S:\GitHub\GaussianDreamer\threestudio\data\co3d.py", line 17, in from threestudio.data.uncond import ( File "S:\GitHub\GaussianDreamer\threestudio\data\uncond.py", line 13, in from threestudio.utils.base import Updateable File "S:\GitHub\GaussianDreamer\threestudio\utilsinit.py", line 1, in from . import base File "S:\GitHub\GaussianDreamer\threestudio\utils\base.py", line 7, in from threestudio.utils.misc import get_device, load_module_weights File "S:\GitHub\GaussianDreamer\threestudio\utils\misc.py", line 5, in import tinycudann as tcnn File "C:\Users\admin\anaconda3\Lib\site-packages\tinycudanninit.py", line 9, in from tinycudann.modules import free_temporary_memory, NetworkWithInputEncoding, Network, Encoding File "C:\Users\admin\anaconda3\Lib\site-packages\tinycudann\modules.py", line 51, in C = importlib.import_module(f"tinycudann_bindings.{cc}C") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\admin\anaconda3\Lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing _86_C: The specified procedure could not be found.

any idea where to start? seems to be a threestudio issue, no?

I am on Windows 11 Anaconda 3 CUDA 11.7 Geforce RTX 3070 8GB

UranusITS commented 8 months ago

tinycudann cannot be installed simply from requirements.txt. You need to clone the source code and compile it with CMake before python environment setup.

You can try this prompt following tiny-cuda-nn README

git clone --recursive https://github.com/nvlabs/tiny-cuda-nn
cd tiny-cuda-nn
cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j
pip install -e bindings/torch
cd ..