Closed garrisonz closed 2 weeks ago
Hi, seems like nvdiffrast is not successfully installed/compiled. Please try reinstall it via:
pip uninstall nvdiffrast
rm -r ~/.cache/torch_extensions/*/nvdiffrast*
pip install nvdiffrast@git+https://github.com/ShenhanQian/nvdiffrast@backface-culling
@ShenhanQian
After run reinstall it:
(VHAP) :~/w/3drecon/VHAP$ pip install nvdiffrast@git+https://github.com/ShenhanQian/nvdiffrast@backface-culling
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting nvdiffrast@ git+https://github.com/ShenhanQian/nvdiffrast@backface-culling
Cloning https://github.com/ShenhanQian/nvdiffrast (to revision backface-culling) to /tmp/pip-install-fjcqfrbd/nvdiffrast_742fb56d361d40d093cb41d5ca4d9fed
Running command git clone --filter=blob:none --quiet https://github.com/ShenhanQian/nvdiffrast /tmp/pip-install-fjcqfrbd/nvdiffrast_742fb56d361d40d093cb41d5ca4d9fed
Running command git checkout -b backface-culling --track origin/backface-culling
Switched to a new branch 'backface-culling'
Branch 'backface-culling' set up to track remote branch 'backface-culling' from 'origin'.
Resolved https://github.com/ShenhanQian/nvdiffrast to commit 22718580f24a313c429ba2c304794c264351f108
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/zhangyupeng/miniconda3/envs/VHAP/lib/python3.10/site-packages (from nvdiffrast@ git+https://github.com/ShenhanQian/nvdiffrast@backface-culling) (1.22.3)
The above error "nvdiffrast_plugin_gl.so: cannot open shared object file: No such file or directory" still there
Can you show the result of ls ~/.cache/torch_extensions/*/nvdiffrast*
(VHAP) :~/w/3drecon/VHAP$ ls ~/.cache/torch_extensions/*/nvdiffrast*
/home/zhangyupeng/.cache/torch_extensions/py310_cu121/nvdiffrast_plugin:
build.ninja
/home/zhangyupeng/.cache/torch_extensions/py310_cu121/nvdiffrast_plugin_gl:
build.ninja
For more information, there is only one file under nvdiffrast_plugin_gl
folder :
(VHAP) :~/w/3drecon/VHAP$ ll /home/zhangyupeng/.cache/torch_extensions/py310_cu121/nvdiffrast_plugin_gl/
total 12
drwxrwxr-x 2 zhangyupeng zhangyupeng 4096 10月 6 22:34 ./
drwxrwxr-x 4 zhangyupeng zhangyupeng 4096 10月 6 22:31 ../
-rw-rw-r-- 1 zhangyupeng zhangyupeng 3610 10月 6 22:27 build.ninja
(VHAP) :~/w/3drecon/VHAP$
Looks like the compilation does run as expected. You may refer to nvdiffrast's repo
I met the cuda 304 error, and the [F glutil.cpp:338] eglInitialize() failed
I fixed it simply with replacing dr.RasterizeGLContext with dr.RasterizeCudaContext in ShenhanQian/nvdiffrec and VHAP. And re-install these two repo.
Xiangyue, thanks for sharing your solution!
Given an upgrade of nvdiffrast
, VHAP now runs entirely based on CUDA. Please pull the latest commit and upgrade nvdiffrast
as instructed here:
https://github.com/ShenhanQian/VHAP/releases/tag/v0.0.2
Sovlved by
export LD_LIBRARY_PATH=/home/xxxxxx/miniconda3/envs/VHAP/lib/:$LD_LIBRARY_PATH
Thanks for your great work!!
After run "pip install ." , successfully installed VHAP-0.0.1 nvdiffrast-0.3.1
But I cannot run track.py as no nvdiffrast_plugin_gl.so error. Any suggestion?
The log is following: