openphotogrammetry / meshroomcl

MeshroomCL: An OpenCL implementation of photogrammetry with the Meshroom interface
Other
163 stars 8 forks source link

Issue 334 #19

Open TeddD88 opened 2 years ago

TeddD88 commented 2 years ago

Hello,

I have the same issue whatever I try

============================================================================== Image undistortion

Undistorting image [1/2] Undistorting image [2/2] Writing reconstruction... Writing configuration... Writing scripts... Elapsed time: 0.082 [minutes] Reading workspace... Reading configuration... Configuration has 2 problems...

============================================================================== Processing view 1 / 2

Reading inputs...

PatchMatch::Problem

ref_image_idx: 0 src_image_idxs: 1

PatchMatchOptions

max_image_size: 3200 gpu_index: 0 depth_min: 13.7579 depth_max: 38.8848 window_radius: 5 window_step: 1 sigma_spatial: 5 sigma_color: 0.2 num_samples: 15 ncc_sigma: 0.6 min_triangulation_angle: 1 incident_angle_sigma: 0.9 num_iterations: 5 geom_consistency: 0 geom_consistency_regularizer: 0.3 geom_consistency_max_cost: 3 filter: 1 filter_min_ncc: 0.1 filter_min_triangulation_angle: 3 filter_min_num_consistent: 1 filter_geom_consistency_max_cost: 1 write_consistency_graph: 0

PatchMatch::Run

OpenCL platform : AMD Accelerated Parallel Processing OpenCL device : Barts Initialization: 0.045264s Sweep 1: 0.121293s Sweep 2: 0.160044s Sweep 3: 0.116362s Sweep 4: 0.158822s Iteration 1: 0.556726s Sweep 1: 0.117017s Sweep 2: 0.157326s Sweep 3: 0.116441s Sweep 4: 0.157663s Iteration 2: 0.548641s Sweep 1: 0.11534s Sweep 2: 0.157462s Sweep 3: 0.115502s Sweep 4: 0.156941s Iteration 3: 0.54546s Sweep 1: 0.114858s Sweep 2: 0.156203s Sweep 3: 0.115604s Sweep 4: 0.155336s Iteration 4: 0.542215s Sweep 1: 0.115274s Sweep 2: 0.153736s Sweep 3: 0.114576s Sweep 4: 0.152996s Iteration 5: 0.536782s Filtering: 0.001961s Total: 2.77726s

Writing photometric output for 161840712.JPG

============================================================================== Processing view 2 / 2

Reading inputs...

PatchMatch::Problem

ref_image_idx: 1 src_image_idxs: 0

PatchMatchOptions

max_image_size: 3200 gpu_index: 0 depth_min: 11.2982 depth_max: 34.9046 window_radius: 5 window_step: 1 sigma_spatial: 5 sigma_color: 0.2 num_samples: 15 ncc_sigma: 0.6 min_triangulation_angle: 1 incident_angle_sigma: 0.9 num_iterations: 5 geom_consistency: 0 geom_consistency_regularizer: 0.3 geom_consistency_max_cost: 3 filter: 1 filter_min_ncc: 0.1 filter_min_triangulation_angle: 3 filter_min_num_consistent: 1 filter_geom_consistency_max_cost: 1 write_consistency_graph: 0

PatchMatch::Run

OpenCL platform : AMD Accelerated Parallel Processing OpenCL device : Barts Initialization: 0.045248s Sweep 1: 0.119313s Sweep 2: 0.159751s Sweep 3: 0.117531s Sweep 4: 0.15796s Iteration 1: 0.554755s Sweep 1: 0.116905s Sweep 2: 0.157431s Sweep 3: 0.116574s Sweep 4: 0.15665s Iteration 2: 0.547775s Sweep 1: 0.116046s Sweep 2: 0.156143s Sweep 3: 0.11688s Sweep 4: 0.155317s Iteration 3: 0.544569s Sweep 1: 0.115977s Sweep 2: 0.154352s Sweep 3: 0.116271s Sweep 4: 0.156355s Iteration 4: 0.543148s Sweep 1: 0.115168s Sweep 2: 0.15394s Sweep 3: 0.114864s Sweep 4: 0.153363s Iteration 5: 0.537605s Filtering: 0.002059s Total: 2.77536s

Writing photometric output for 2118428402.JPG Elapsed time: 0.127 [minutes] Reading workspace... Reading configuration... Configuration has 2 problems...

============================================================================== Processing view 1 / 2

Reading inputs...

PatchMatch::Problem

ref_image_idx: 0 src_image_idxs: 1

PatchMatchOptions

max_image_size: 3200 gpu_index: 0 depth_min: 13.7579 depth_max: 38.8848 window_radius: 5 window_step: 1 sigma_spatial: 5 sigma_color: 0.2 num_samples: 15 ncc_sigma: 0.6 min_triangulation_angle: 1 incident_angle_sigma: 0.9 num_iterations: 5 geom_consistency: 1 geom_consistency_regularizer: 0.3 geom_consistency_max_cost: 3 filter: 1 filter_min_ncc: 0.1 filter_min_triangulation_angle: 3 filter_min_num_consistent: 1 filter_geom_consistency_max_cost: 1 write_consistency_graph: 0

PatchMatch::Run

OpenCL platform : AMD Accelerated Parallel Processing OpenCL device : Barts Initialization: 0.041246s Sweep 1: 0.131463s Sweep 2: 0.176141s Sweep 3: 0.12837s Sweep 4: 0.176152s Iteration 1: 0.612329s Sweep 1: 0.127463s Sweep 2: 0.176054s Sweep 3: 0.128155s Sweep 4: 0.175475s Iteration 2: 0.607356s Sweep 1: 0.128106s Sweep 2: 0.175604s Sweep 3: 0.128512s Sweep 4: 0.175285s Iteration 3: 0.607704s Sweep 1: 0.128073s Sweep 2: 0.175564s Sweep 3: 0.128244s Sweep 4: 0.175843s Iteration 4: 0.607937s Sweep 1: 0.128165s Sweep 2: 0.17488s Sweep 3: 0.128603s Sweep 4: 0.17521s Iteration 5: 0.607117s Filtering: 0.002673s Total: 3.08677s

Writing geometric output for 161840712.JPG

============================================================================== Processing view 2 / 2

Reading inputs...

PatchMatch::Problem

ref_image_idx: 1 src_image_idxs: 0

PatchMatchOptions

max_image_size: 3200 gpu_index: 0 depth_min: 11.2982 depth_max: 34.9046 window_radius: 5 window_step: 1 sigma_spatial: 5 sigma_color: 0.2 num_samples: 15 ncc_sigma: 0.6 min_triangulation_angle: 1 incident_angle_sigma: 0.9 num_iterations: 5 geom_consistency: 1 geom_consistency_regularizer: 0.3 geom_consistency_max_cost: 3 filter: 1 filter_min_ncc: 0.1 filter_min_triangulation_angle: 3 filter_min_num_consistent: 1 filter_geom_consistency_max_cost: 1 write_consistency_graph: 0

PatchMatch::Run

OpenCL platform : AMD Accelerated Parallel Processing OpenCL device : Barts Initialization: 0.04109s Sweep 1: 0.130703s Sweep 2: 0.175019s Sweep 3: 0.128666s Sweep 4: 0.175714s Iteration 1: 0.610309s Sweep 1: 0.129198s Sweep 2: 0.17447s Sweep 3: 0.129728s Sweep 4: 0.17457s Iteration 2: 0.608163s Sweep 1: 0.128536s Sweep 2: 0.174519s Sweep 3: 0.128934s Sweep 4: 0.174371s Iteration 3: 0.606561s Sweep 1: 0.128437s Sweep 2: 0.174996s Sweep 3: 0.128747s Sweep 4: 0.173596s Iteration 4: 0.606007s Sweep 1: 0.128248s Sweep 2: 0.173042s Sweep 3: 0.12845s Sweep 4: 0.17308s Iteration 5: 0.603009s Filtering: 0.002262s Total: 3.07754s

Writing geometric output for 2118428402.JPG Elapsed time: 0.146 [minutes]

StereoFusion::Options

max_image_size: 3200 min_num_pixels: 5 max_num_pixels: 10000 max_traversal_depth: 100 max_reproj_error: 2 max_depth_error: 0.01 max_normal_error: 10 check_num_images: 50 cache_size: 32

Reading workspace... Reading configuration... Fusing image [1/2] in 0.407s (49 points) Fusing image [2/2] in 0.113s (49 points) Number of fused points: 49 Elapsed time: 0.010 [minutes] Writing output: C:/Users/Tedd/Documents/MeshroomCache/MultiviewStereoCL/1d0ec6fd9b35520c7f8df87858f9038b4610f21a\fused.ply Triangulating points... Triangulation has 49 using 49 points. Initializing ray tracer... Initializing graph optimization... Integrating image [1/2] in 0.310s Integrating image [2/2] in 0.000s Setting up optimization... Running graph-cut optimization... Extracting surface as min-cut... Creating surface mesh model... F1112 00:16:03.509315 11880 math.h:233] Check failed: !elems.empty() Check failure stack trace: @ 00007FFC2C905FCB public: void cdecl google::LogMessage::Flush(void) ptr64 @ 00007FFC2C904B29 public: cdecl google::LogMessageFatal::~LogMessageFatal(void) ptr64 @ 00007FF7FC70D401 (unknown) @ 00007FF7FC72CB2A (unknown) @ 00007FF7FC72CFBC (unknown) @ 00007FF7FC5EF849 (unknown) @ 00007FF7FC5E17A6 (unknown) @ 00007FF7FC6241BF (unknown) @ 00007FF7FCB3EB24 (unknown) @ 00007FFC8C467034 BaseThreadInitThunk @ 00007FFC8E342651 RtlUserThreadStart

Any idea ?

For information, I add 18 images and it seems to take only 2...

Regards,

Tedd

revisionarian commented 2 years ago

Hi @TeddD88, it looks like your problem originates in the StructureFromMotionCL node, which was only able to align 2 of your 18 images for some reason.

After you imported your images, did all of them get a focal length estimate (i.e. do all of them have a little green circle icon in the upper left hand corner)? Can you post the log message from the StructureFromMotionCL node?

The StructureFromMotionCL node uses some randomization, and occasionally fails on the first attempt, so please try to align your images at least 3 times.