Closed NB-wo closed 8 months ago
Hi, I have met this problem once from one of our server. But the other server works. I can't remember how I solved it. (i just bruteforcely search and try each possible solution from google and github ) We do not use sudo in the docker. We still use gpu after fixing the qt error.
Perhaps export CUDA_VISIBLE_DEVICES=0
in the conda
or any disucss in the large repo that use colmap.
I remember I searched several github repo (instant ngp and colmap )
github.com/NVlabs/instant-ngp/discussions/300
Hi, I have met this problem once from one of our server. But the other server works. I can't remember how I solved it. (i just bruteforcely search and try each possible solution from google and github ) We do not use sudo in the docker. We still use gpu after fixing the qt error.
Perhaps
export CUDA_VISIBLE_DEVICES=0
in the condaor any disucss in the large repo that use colmap.
I remember I searched several github repo (instant ngp and colmap )
github.com/NVlabs/instant-ngp/discussions/300
Thank you very much for your prompt reply. Unfortunately, I tried the method you mentioned as well as the instant ngp method, and neither solved my problem. I'll just use the CPU then. After all, generating SFM point clouds only needs to be run once, so it's okay if it's a bit slower.
Hi, I have met this problem too. It seems something goes wrong when colmap is running on headless server environments, and I find a potential workaround is to use Xvfb, a virtual framebuffer that enables OpenGL applications to run without a physical display.
sudo apt-get install xvfb
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
It is weird but it does work. : )
I met the same problem. If you don't have a display in your server, you can try to add option --SiftExtraction.use_gpu=false to colmap feature_extractor and add option --SiftMatching.use_gpu=false to colmap exhaustive_matcher in thirdparty/gaussian_splatting/helper3dg.py.
More details about this solution: https://colmap.github.io/faq.html#available-functionality-without-gpu-cuda
Hi, thank you very much for your outstanding work. I am running the data processing code pre_n3d.py with the following error:
I have installed the package opencv-python-headless and the environment is set up exactly as colmapenv in setup. I also looked up the original 3dgs issue, and its solution says to install it with apt, and I can't seem to find a suitable solution on the internet
According to colmap official statement, it will use cuda device by default when no gui exists, but it seems that it just doesn't work in conda environment!
I modified pre_n3d.py to force it to use cpu by adding --SiftMatching.use_gpu 0 or something like that after the corresponding colmap command, and it works. The downside is that it is slower.
I was wondering if you could run this code you gave for processing data pre_n3d.py directly inside a conda virtual environment without an external monitor (on the server). As well have you encountered this problem? How was it solved?