GDAOSU / vis2mesh

Vis2Mesh: Efficient Mesh Reconstruction from Unstructured Point Clouds of Large Scenes with Learned Virtual View Visibility ICCV2021
100 stars 16 forks source link

Error running example in docker 2 #4

Closed VitalyyBezuglyj closed 2 years ago

VitalyyBezuglyj commented 2 years ago

Tried to launch example in docker, but met the following error:

Available Toolset

vvtool: vvtool o3d_vvcreator.py: o3d_vvcreator.py ReconstructMesh: ReconstructMesh

Project Settings

Input Cloud: /workspace/example/example1.ply Exists: True Input Mesh: Exists: False Input Textured Mesh: Exists: False Input Textured Mesh: Exists: False Base Cam: Exists: False Input Cam: /workspace/example/example1.ply_WORK/cam0.json Exists: True Work Folder: /workspace/example/example1.ply_WORK Exists: True Cam: cam0 ToolChain: NET.POINT_DELAY ToolChain Work Folder: /workspace/example/example1.ply_WORK/VDVNet_cam0 Exists:True Output Folder: /workspace/example/example1.ply_WORK/VDVNet_cam0/out Exists:True -- CamCreator Cmd: o3d_vvcreator.py --output_list=/workspace/example/example1.ply_WORK/cam0.json --width=512 --height=512 /workspace/example/example1.ply INFO:root:Valid Cams:104 vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/libgdal.so.20) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libpoppler.so.73) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgeotiff.so.2) 0%| | 0/104 [00:00<?, ?it/s]/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /opt/conda/conda-bld/pytorch_1623448224956/work/c10/core/TensorImpl.h:1156.) return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode) 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 104/104 [00:40<00:00, 2.54it/s] vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/libgdal.so.20) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libpoppler.so.73) vvtool: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgeotiff.so.2) ReconstructMesh: /opt/conda/lib/libtiff.so.5: no version information available (required by ReconstructMesh) ReconstructMesh: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2) ReconstructMesh: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/libgdal.so.20) ReconstructMesh: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libpoppler.so.73) ReconstructMesh: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgeotiff.so.2) terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_replace_aux Generation Failed Process Done

Google the "no version information available" and found that solution, but updating the ghost script has no effect.

I read the previous issue about thar error, but in my case valid cams param is OK.

sxsong1207 commented 2 years ago

Hi, thanks for your report. I don't think 'no version information' is the fatal error which makes the program died.

terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_replace_aux

This is the source of error. Does it happen if you run with the given example and cams?

VitalyyBezuglyj commented 2 years ago

Okay, got it, thanks!

Yes, this happened when I tried to run the given example.

There is one thing I had changed in your code - setup_tools.sh script. When I tried to build docker container I met the errors with linking static libraries of opencv. And after some research I found out that the mvs repo was updated and choose the develop branch instead of master, because It wasn't modified for last 6 month. It solved linking error, but probably there were some unfixed errors. Could you please specify which commit you were used when were developing this project and i will try to clone correct version?

VitalyyBezuglyj commented 2 years ago

image Example of error that I met when launch script "as is"

sxsong1207 commented 2 years ago

I see, I also aware that the external project openMVS_mvasupport lead to the failed build.

could you please checkout this commit? I believe this is what I used for the project.

09fdd45e23c4b4fd3a0a4258f8294aae6e9fe8d9

VitalyyBezuglyj commented 2 years ago

It works!

Thank you very much!

sxsong1207 commented 2 years ago

Thank you for bug reporting. I will update the script.