colmap / colmap

COLMAP - Structure-from-Motion and Multi-View Stereo
https://colmap.github.io/
Other
7.03k stars 1.44k forks source link

Automatic Reconstruction with only "dense" checked does not do much. #2549

Open felixniemeyer opened 1 month ago

felixniemeyer commented 1 month ago

If I uncheck "sparse" and only leave "dense" checked in the gui in the automatic reconstruction dialogue, the process runs very fast and terminates quickly. It seems to succeed and I get the "import the model from ./dense"-popup hint. A dense folder has been created, but it's empty.

Only when I check the "sparse" checkbox and click "run" again, it starts some real processing and also starts filling the dense folder.

Colmap works in general on my machine. I've used it before successfully.

To Reproduce Steps to reproduce the behavior: Open gui. Click automatic reconstruction. Select ./ as workspace and ./frames as image folder Uncheck sparse. Click run.

Expected behavior I expected the processing to take some time and to see a dense model in ./dense after the processing has finished.

Screenshots image But the dense folder is empty.

Logs Here is the log from the run with only "dense" checked.

==============================================================================
Feature extraction
==============================================================================
Processed file [1/34]
  Name:            frame_0001.png
  Dimensions:      1920 x 1080
  Camera:          #1 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10094
Processed file [2/34]
  Name:            frame_0004.png
  Dimensions:      1920 x 1080
  Camera:          #4 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9122
Processed file [3/34]
  Name:            frame_0005.png
  Dimensions:      1920 x 1080
  Camera:          #5 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8832
Processed file [4/34]
  Name:            frame_0002.png
  Dimensions:      1920 x 1080
  Camera:          #2 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9926
Processed file [5/34]
  Name:            frame_0006.png
  Dimensions:      1920 x 1080
  Camera:          #6 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13848
Processed file [6/34]
  Name:            frame_0008.png
  Dimensions:      1920 x 1080
  Camera:          #8 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        12792
Processed file [7/34]
  Name:            frame_0003.png
  Dimensions:      1920 x 1080
  Camera:          #3 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9387
Processed file [8/34]
  Name:            frame_0009.png
  Dimensions:      1920 x 1080
  Camera:          #9 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13423
Processed file [9/34]
  Name:            frame_0007.png
  Dimensions:      1920 x 1080
  Camera:          #7 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        12871
Processed file [10/34]
  Name:            frame_0010.png
  Dimensions:      1920 x 1080
  Camera:          #10 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8773
Processed file [11/34]
  Name:            frame_0011.png
  Dimensions:      1920 x 1080
  Camera:          #11 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9797
Processed file [12/34]
  Name:            frame_0012.png
  Dimensions:      1920 x 1080
  Camera:          #12 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10379
Processed file [13/34]
  Name:            frame_0014.png
  Dimensions:      1920 x 1080
  Camera:          #14 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10646
Processed file [14/34]
  Name:            frame_0013.png
  Dimensions:      1920 x 1080
  Camera:          #13 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10556
Processed file [15/34]
  Name:            frame_0015.png
  Dimensions:      1920 x 1080
  Camera:          #15 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10809
Processed file [16/34]
  Name:            frame_0016.png
  Dimensions:      1920 x 1080
  Camera:          #16 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        11223
Processed file [17/34]
  Name:            frame_0021.png
  Dimensions:      1920 x 1080
  Camera:          #21 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9164
Processed file [18/34]
  Name:            frame_0017.png
  Dimensions:      1920 x 1080
  Camera:          #17 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        11182
Processed file [19/34]
  Name:            project
E:  to read image file format.
I
Processed file [20/34]
  Name:            frame_0018.png
  Dimensions:      1920 x 1080
  Camera:          #18 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10491
Processed file [21/34]
  Name:            frame_0024.png
  Dimensions:      1920 x 1080
  Camera:          #24 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8774
Processed file [22/34]
  Name:            frame_0020.png
  Dimensions:      1920 x 1080
  Camera:          #20 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9492
Processed file [23/34]
  Name:            frame_0022.png
  Dimensions:      1920 x 1080
  Camera:          #22 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8950
Processed file [24/34]
  Name:            frame_0025.png
  Dimensions:      1920 x 1080
  Camera:          #25 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8547
Processed file [25/34]
  Name:            frame_0026.png
  Dimensions:      1920 x 1080
  Camera:          #26 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8463
Processed file [26/34]
  Name:            frame_0019.png
  Dimensions:      1920 x 1080
  Camera:          #19 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        10497
Processed file [27/34]
  Name:            frame_0023.png
  Dimensions:      1920 x 1080
  Camera:          #23 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        9020
Processed file [28/34]
  Name:            frame_0029.png
  Dimensions:      1920 x 1080
  Camera:          #29 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13773
Processed file [29/34]
  Name:            frame_0030.png
  Dimensions:      1920 x 1080
  Camera:          #30 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        12767
Processed file [30/34]
  Name:            frame_0028.png
  Dimensions:      1920 x 1080
  Camera:          #28 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13586
Processed file [31/34]
  Name:            frame_0027.png
  Dimensions:      1920 x 1080
  Camera:          #27 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        8377
Processed file [32/34]
  Name:            frame_0032.png
  Dimensions:      1920 x 1080
  Camera:          #32 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13218
Processed file [33/34]
  Name:            frame_0031.png
  Dimensions:      1920 x 1080
  Camera:          #31 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        13733
Processed file [34/34]
  Name:            frame_0033.png
  Dimensions:      1920 x 1080
  Camera:          #33 - SIMPLE_RADIAL
  Focal Length:    2304.00px
  Features:        11276
Elapsed time: 0.204 [minutes]

==============================================================================
Sequential feature matching
==============================================================================
Matching image [1/33]
 in 0.179s
Matching image [2/33]
 in 0.131s
Matching image [3/33]
 in 0.112s
Matching image [4/33]
 in 0.138s
Matching image [5/33]
 in 0.138s
Matching image [6/33]
 in 0.171s
Matching image [7/33]
 in 0.124s
Matching image [8/33]
 in 0.114s
Matching image [9/33]
 in 0.115s
Matching image [10/33]
 in 0.116s
Matching image [11/33]
 in 0.136s
Matching image [12/33]
 in 0.167s
Matching image [13/33]
 in 0.117s
Matching image [14/33]
 in 0.162s
Matching image [15/33]
 in 0.132s
Matching image [16/33]
 in 0.112s
Matching image [17/33]
 in 0.136s
Matching image [18/33]
 in 0.099s
Matching image [19/33]
 in 0.109s
Matching image [20/33]
 in 0.092s
Matching image [21/33]
 in 0.103s
Matching image [22/33]
 in 0.089s
Matching image [23/33]
 in 0.108s
Matching image [24/33]
 in 0.119s
Matching image [25/33]
 in 0.126s
Matching image [26/33]
 in 0.090s
Matching image [27/33]
 in 0.103s
Matching image [28/33]
 in 0.114s
Matching image [29/33]
 in 0.082s
Matching image [30/33]
 in 0.055s
Matching image [31/33]
 in 0.043s
Matching image [32/33]
 in 0.031s
Matching image [33/33]
 in 0.000s
Elapsed time: 0.062 [minutes]

Environment: Arch Linux, Kernel 6.8 COLMAP 3.10-dev -- Structure-from-Motion and Multi-View Stereo (Commit 187a4e1a on 2024-04-23 with CUDA) Images are frames extracted from video with ffmpeg.

jytime commented 1 month ago

Colmap expects you to run sparse reconstruction first to get sparse 3d point clouds and camera poses, and then can run dense reconstruction. If you don't want to run sparse reconstruction by colmap, you need to provide some 3d point clouds and camera poses in the format of colmap as the init