jspenmar / slowtv_monodepth

Official repository for the ICCV2023 paper "Kick Back & Relax: Learning to Reconstruct the World by Watching SlowTV"
https://arxiv.org/abs/2307.10713
Other
82 stars 5 forks source link

Export estimate Colmap intrinsics failed #4

Closed z-x-j closed 10 months ago

z-x-j commented 10 months ago

When I use python api/data/preprocess/export_slow_tv.py --n-proc 16 to export the Colmap intrinsics, I encounter an error. RuntimeError: -> Tried [42, 195, 335, 558, 724] and they all failed!!How should I resolve this?

z-x-j commented 10 months ago

"I found during debugging that on line 209 of devkits/slow_tv.py, subprocess.run cannot run." code:
subprocess.run([ 'colmap', 'feature_extractor', '--ImageReader.single_camera', '1', # Same cam for whole sequence. '--database_path', db_path, '--image_path', img_dir, ])

jspenmar commented 10 months ago

Hi!

Sometimes this can simply be due to the feature matching failing. You can try changing the random seeds used to select the sub-sequence processed by Colmap. Does it fail on all sequences, or just on some?

The other thing I would recommend is running the commands yourself in the command line to check the output in the terminal.

Kind regards, Jaime

z-x-j commented 10 months ago

I tried random seeds within the range of 1 to 1000 with intervals of 10, but it failed. Is it because I haven't installed COLMAP? I'm looking forward to your response.

jspenmar commented 10 months ago

In order to run the Colmap you have to have installed it first. You can find the instructions here

z-x-j commented 10 months ago

"Thank you for your guidance; I solved the issue using the 'sudo apt install colmap' command. Thank you."