dreamgaussian / dreamgaussian

[ICLR 2024 Oral] Generative Gaussian Splatting for Efficient 3D Content Creation
https://dreamgaussian.github.io/
MIT License
3.77k stars 330 forks source link

Import error even your demo google colab got errrors too! #132

Open aros97918 opened 3 months ago

aros97918 commented 3 months ago

when I execute this code: subprocess.run(f'python main.py --config {os.path.join("configs", "image.yaml")} input={os.path.join("tmp_data", "tmp_rgba.png")} save_path=tmp mesh_format=glb elevation={elevation_slider} force_cuda_rast=True', shell=True)

return os.path.join('logs', 'tmp_mesh.glb')

they occurs below error

ImportError: /usr/local/lib/python3.10/dist-packages/diff_gaussian_rasterization/_C.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

nickrobinchen commented 2 weeks ago

You could try to delete and redownload(run git clone) the diff_gaussian_rasterization directory, then rerun the command pip install ./diff-gaussian-rasterization so it will rebuild the wheels. Just encountered the same error and this works for me.