NVlabs / neuralangelo

Official implementation of "Neuralangelo: High-Fidelity Neural Surface Reconstruction" (CVPR 2023)

Home Page:https://research.nvidia.com/labs/dir/neuralangelo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preprocessing script error in NeuralAngelo project

hanqing0817 opened this issue · comments

When I run the command bash projects/neuralangelo/scripts/preprocess.sh ${SEQUENCE} ${PATH_TO_VIDEO} ${DOWNSAMPLE_RATE} ${SCENE_TYPE}, the system always displays 'No such file or directory: 'datasets/lego_ds2/sparse /cameras.bin'' and [Errno 2] No such file or directory: 'datasets/lego_ds2/images' and 'colmap: error while loading shared libraries: libGLEW.so.2.2: cannot open shared object file: No such file or directory', but I have reinstalled both colmap and libGLEW.so.2.2. How should I solve this problem?

That's because the pre-complied colmap-lib obtained in COLAB demo doesn't fit your linux env.

# Download and extract the pre-compiled COLMAP library
%cd /content
!gdown 1PyyNKY2mt4dHlYN5WcPnvWdV2nufQru1
!tar -C /usr -zxf colmap-3.8.tar.gz

You should follow the dockerfile(neuralangelo/docker/Dockerfile-colmap) to build your own version.

# Colmap
RUN git clone https://github.com/colmap/colmap.git && cd colmap && git checkout 3.8
RUN cd colmap && mkdir build && cd build && cmake .. -DCUDA_ENABLED=ON -DCMAKE_CUDA_ARCHITECTURES="70;72;75;80;86" -GNinja
RUN cd colmap/build && ninja && ninja install