Hi,
my reconstruction failed and I am not sure what the problem is.
It aborts during loval seam leveling:
I have tried a few different settings starting with:
–dsm --dtm --dem-resolution 4
–orthophoto-resolution 1 --ignore-gsd --orthophoto-kmz
–resize-to -1
–mesh-octree-depth 14
After it aborted, I removed some of the setting and tried it again, which did not work.
Here is the log:
[INFO] Finished odm_meshing stage
[INFO] Running mvs_texturing stage
[WARNING] Found a valid ODM Texture file in: /datasets/Tropical_Regen_Block1_basemap/odm_texturing/odm_textured_model_geo.obj
[INFO] Writing MVS Textured file in: /datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/odm_textured_model_geo.obj
[INFO] Removing old tmp directory /datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/tmp
[INFO] running "/code/SuperBuild/install/bin/texrecon" "/datasets/Tropical_Regen_Block1_basemap/opensfm/undistorted/reconstruction.nvm" "/datasets/Tropical_Regen_Block1_basemap/odm_meshing/odm_25dmesh.ply" "/datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/odm_textured_model_geo" -d gmi -o gauss_clamping -t none --no_intermediate_results --nadir_mode
/code/SuperBuild/install/bin/texrecon (built on Oct 13 2021, 21:14:35)
Load and prepare mesh:
Reading PLY: 200733 verts... 399530 faces... done.
Warning: Zero-length normals detected: 0 face normals, 9 vertex normals
Generating texture views:
NVM: Loading file...
NVM: Number of views: 1001
NVM: Number of features: 1199242
Loading 100%... done. (Took 84.756s)
Building adjacency graph:
Adding edges 100%... done. (Took 0.883s)
598521 total edges.
View selection:
Building BVH from 399530 faces... done. (Took: 375 ms)
Calculating face qualities 100%... done. (Took 87.952s)
Postprocessing face infos 100%... done. (Took 0.181s)
Maximum quality of a face within an image: 0.999988
Clamping qualities to 0.997288 within normalization.
Optimizing:
Time[s] Energy
0 80834
1 79987
1 72853
2 69544
2 68137
3 67414
3 67029
3 66936
4 66727
4 66544
5 66408
5 66327
6 66255
6 66246
6 66210
7 66183
7 66151
8 66132
8 66109
8833 faces have not been seen
Took: 98.31s
Generating texture patches:
Running... done. (Took 72.806s)
4408 texture patches.
Running global seam leveling:
Create matrices for optimization... done.
Lhs dimensionality: 228166 x 228166
Calculating adjustments:
Color channel 0: CG took 96 iterations. Residual is 9.3873e-05
Color channel 2: CG took 95 iterations. Residual is 9.97205e-05
Color channel 1: CG took 96 iterations. Residual is 9.62447e-05
Took 0.49 seconds
Adjusting texture patches 100%... done. (Took 119.133s)
Running local seam leveling:
free(): invalid next size (normal)
Aborted (core dumped)
===== Dumping Info for Geeks (developers need this to fix bugs) =====
Child returned 134
Traceback (most recent call last):
File "/code/stages/odm_app.py", line 94, in execute
self.first_stage.run()
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
[Previous line repeated 4 more times]
File "/code/opendm/types.py", line 328, in run
self.process(self.args, outputs)
File "/code/stages/mvstex.py", line 108, in process
system.run('"{bin}" "{nvm_file}" "{model}" "{out_dir}" '
File "/code/opendm/system.py", line 106, in run
raise SubprocessException("Child returned {}".format(retcode), retcode)
opendm.system.SubprocessException: Child returned 134
===== Done, human-readable information to follow... =====
[ERROR] Uh oh! Processing stopped because of strange values in the reconstruction. This is often a sign that the input data has some issues or the software cannot deal with it. Have you followed best practices for data acquisition? See https://docs.opendronemap.org/flying/
Finally, I ran it with only
–fast-orthophoto
to see if that works. It still abort at the same step, but the error message is a bit different.
docker run -ti --rm \
> -v /ETA/Lars/odm/datasets:/datasets opendronemap/odm \
> --project-path /datasets Tropical_Regen_Block1_basemap \
> #--orthophoto-resolution 1 \
--fast-orthophoto [INFO] Initializing ODM - Mon Nov 01 06:37:44 2021
[INFO] ==============
[INFO] auto_boundary: False
[INFO] boundary: {}
[INFO] build_overviews: False
[INFO] camera_lens: auto
[INFO] cameras: {}
[INFO] cog: False
[INFO] copy_to: None
[INFO] crop: 3
[INFO] debug: False
[INFO] dem_decimation: 1
[INFO] dem_euclidean_map: False
[INFO] dem_gapfill_steps: 3
[INFO] dem_resolution: 5
[INFO] depthmap_resolution: 640
[INFO] dsm: False
[INFO] dtm: False
[INFO] end_with: odm_postprocess
[INFO] fast_orthophoto: False
[INFO] feature_quality: high
[INFO] feature_type: sift
[INFO] force_gps: False
[INFO] gcp: None
[INFO] geo: None
[INFO] gps_accuracy: 10
[INFO] ignore_gsd: False
[INFO] matcher_distance: 0
[INFO] matcher_neighbors: 8
[INFO] matcher_type: flann
[INFO] max_concurrency: 32
[INFO] merge: all
[INFO] mesh_octree_depth: 11
[INFO] mesh_size: 200000
[INFO] min_num_features: 8000
[INFO] name: Tropical_Regen_Block1_basemap
[INFO] optimize_disk_space: False
[INFO] orthophoto_compression: DEFLATE
[INFO] orthophoto_cutline: False
[INFO] orthophoto_kmz: False
[INFO] orthophoto_no_tiled: False
[INFO] orthophoto_png: False
[INFO] orthophoto_resolution: 5
[INFO] pc_classify: False
[INFO] pc_csv: False
[INFO] pc_ept: False
[INFO] pc_filter: 2.5
[INFO] pc_geometric: False
[INFO] pc_las: False
[INFO] pc_quality: medium
[INFO] pc_rectify: False
[INFO] pc_sample: 0
[INFO] pc_tile: False
[INFO] primary_band: auto
[INFO] project_path: /datasets
[INFO] radiometric_calibration: none
[INFO] rerun: None
[INFO] rerun_all: False
[INFO] rerun_from: None
[INFO] resize_to: 2048
[INFO] skip_3dmodel: False
[INFO] skip_band_alignment: False
[INFO] skip_report: False
[INFO] sm_cluster: None
[INFO] smrf_scalar: 1.25
[INFO] smrf_slope: 0.15
[INFO] smrf_threshold: 0.5
[INFO] smrf_window: 18.0
[INFO] split: 999999
[INFO] split_image_groups: None
[INFO] split_overlap: 150
[INFO] texturing_data_term: gmi
[INFO] texturing_keep_unseen_faces: False
[INFO] texturing_outlier_removal_type: gauss_clamping
[INFO] texturing_skip_global_seam_leveling: False
[INFO] texturing_skip_local_seam_leveling: False
[INFO] texturing_tone_mapping: none
[INFO] tiles: False
[INFO] time: False
[INFO] use_3dmesh: False
[INFO] use_exif: False
[INFO] use_fixed_camera_params: False
[INFO] use_hybrid_bundle_adjustment: False
[INFO] verbose: False
[INFO] ==============
[INFO] Running dataset stage
[INFO] Loading dataset from: /datasets/Tropical_Regen_Block1_basemap/images
[INFO] Loading images database: /datasets/Tropical_Regen_Block1_basemap/images.json
[INFO] Found 1383 usable images
[INFO] Coordinates file already exist: /datasets/Tropical_Regen_Block1_basemap/odm_georeferencing/coords.txt
[INFO] Model geo file already exist: /datasets/Tropical_Regen_Block1_basemap/odm_georeferencing/odm_georeferencing_model_geo.txt
[INFO] Parsing SRS header: WGS84 UTM 55S
[INFO] Finished dataset stage
[INFO] Running split stage
[INFO] Normal dataset, will process all at once.
[INFO] Finished split stage
[INFO] Running merge stage
[INFO] Normal dataset, nothing to merge.
[INFO] Finished merge stage
[INFO] Running opensfm stage
[WARNING] /datasets/Tropical_Regen_Block1_basemap/opensfm/image_list.txt already exists, not rerunning OpenSfM setup
[WARNING] Detect features already done: /datasets/Tropical_Regen_Block1_basemap/opensfm/features exists
[WARNING] Match features already done: /datasets/Tropical_Regen_Block1_basemap/opensfm/matches exists
[WARNING] Found a valid OpenSfM tracks file in: /datasets/Tropical_Regen_Block1_basemap/opensfm/tracks.csv
[WARNING] Found a valid OpenSfM reconstruction file in: /datasets/Tropical_Regen_Block1_basemap/opensfm/reconstruction.json
[INFO] Already extracted cameras
[INFO] Export reconstruction stats
[WARNING] Found existing reconstruction stats /datasets/Tropical_Regen_Block1_basemap/opensfm/stats/stats.json
[WARNING] Will skip exporting /datasets/Tropical_Regen_Block1_basemap/opensfm/reconstruction.geocoords.json
[INFO] Undistorting /datasets/Tropical_Regen_Block1_basemap/opensfm ...
[WARNING] Already undistorted (nominal)
[WARNING] Found a valid OpenSfM NVM reconstruction file in: /datasets/Tropical_Regen_Block1_basemap/opensfm/undistorted/reconstruction.nvm
[INFO] Finished opensfm stage
[INFO] Running openmvs stage
[WARNING] Found a valid OpenMVS reconstruction file in: /datasets/Tropical_Regen_Block1_basemap/opensfm/undistorted/openmvs/scene_dense_dense_filtered.ply
[INFO] Finished openmvs stage
[INFO] Running odm_filterpoints stage
[WARNING] Found a valid point cloud file in: /datasets/Tropical_Regen_Block1_basemap/odm_filterpoints/point_cloud.ply
[INFO] Finished odm_filterpoints stage
[INFO] Running odm_meshing stage
[WARNING] Found a valid ODM Mesh file in: /datasets/Tropical_Regen_Block1_basemap/odm_meshing/odm_mesh.ply
[WARNING] Found a valid ODM 2.5D Mesh file in: /datasets/Tropical_Regen_Block1_basemap/odm_meshing/odm_25dmesh.ply
[INFO] Finished odm_meshing stage
[INFO] Running mvs_texturing stage
[WARNING] Found a valid ODM Texture file in: /datasets/Tropical_Regen_Block1_basemap/odm_texturing/odm_textured_model_geo.obj
[INFO] Writing MVS Textured file in: /datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/odm_textured_model_geo.obj
[INFO] Removing old tmp directory /datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/tmp
[INFO] running "/code/SuperBuild/install/bin/texrecon" "/datasets/Tropical_Regen_Block1_basemap/opensfm/undistorted/reconstruction.nvm" "/datasets/Tropical_Regen_Block1_basemap/odm_meshing/odm_25dmesh.ply" "/datasets/Tropical_Regen_Block1_basemap/odm_texturing_25d/odm_textured_model_geo" -d gmi -o gauss_clamping -t none --no_intermediate_results --nadir_mode
/code/SuperBuild/install/bin/texrecon (built on Oct 13 2021, 21:14:35)
Load and prepare mesh:
Reading PLY: 200733 verts... 399530 faces... done.
Warning: Zero-length normals detected: 0 face normals, 9 vertex normals
Generating texture views:
NVM: Loading file...
NVM: Number of views: 1001
NVM: Number of features: 1199242
Loading 100%... done. (Took 153.404s)
Building adjacency graph:
Adding edges 100%... done. (Took 0.91s)
598521 total edges.
View selection:
Building BVH from 399530 faces... done. (Took: 383 ms)
Calculating face qualities 100%... done. (Took 86.404s)
Postprocessing face infos 100%... done. (Took 0.179s)
Maximum quality of a face within an image: 0.999988
Clamping qualities to 0.997288 within normalization.
Optimizing:
Time[s] Energy
0 81133
1 80238
1 73115
2 69705
2 68264
2 67499
3 67047
3 66986
4 66747
4 66577
5 66428
5 66313
5 66250
6 66250
6 66209
6 66176
7 66150
7 66125
8 66107
8833 faces have not been seen
Took: 96.47s
Generating texture patches:
Running... done. (Took 72.62s)
4373 texture patches.
Running global seam leveling:
Create matrices for optimization... done.
Lhs dimensionality: 228065 x 228065
Calculating adjustments:
Color channel 0: CG took 95 iterations. Residual is 9.24459e-05
Color channel 2: CG took 95 iterations. Residual is 9.70899e-05
Color channel 1: CG took 101 iterations. Residual is 9.77669e-05
Took 0.484 seconds
Adjusting texture patches 100%... done. (Took 117.316s)
Running local seam leveling:
Received signal SIGSEGV (segmentation fault)
Obtained 11 stack frames: 0x561d650e2216 0x561d650e2324 0x7f35ec66c040 0x7f35ec6be93d 0x7f35ec6c27a8 0x561d6509c25d 0x561d65023334 0x561d650155d9 0x7f35ec871166 0x7f35ec820450 0x7f35ec742d53
/code/SuperBuild/install/bin/texrecon(_ZN4util6system17print_stack_traceEv+0x36)[0x561d650e2216]
/code/SuperBuild/install/bin/texrecon(+0x1d1324)[0x561d650e2324]
/lib/x86_64-linux-gnu/libc.so.6(+0x41040)[0x7f35ec66c040]
/lib/x86_64-linux-gnu/libc.so.6(+0x9393d)[0x7f35ec6be93d]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x68)[0x7f35ec6c27a8]
/code/SuperBuild/install/bin/texrecon(_Z13poisson_blendSt10shared_ptrIKN3mve5ImageIfEEES_IKNS1_IhEEES_IS2_Ef+0xc3d)[0x561d6509c25d]
/code/SuperBuild/install/bin/texrecon(_ZN12TexturePatch5blendESt10shared_ptrIKN3mve5ImageIfEEE+0xa4)[0x561d65023334]
/code/SuperBuild/install/bin/texrecon(+0x1045d9)[0x561d650155d9]
/lib/x86_64-linux-gnu/libgomp.so.1(+0x1d166)[0x7f35ec871166]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9450)[0x7f35ec820450]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7f35ec742d53]
Segmentation fault
===== Dumping Info for Geeks (developers need this to fix bugs) =====
Child returned 1
Traceback (most recent call last):
File "/code/stages/odm_app.py", line 94, in execute
self.first_stage.run()
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 347, in run
self.next_stage.run(outputs)
[Previous line repeated 4 more times]
File "/code/opendm/types.py", line 328, in run
self.process(self.args, outputs)
File "/code/stages/mvstex.py", line 108, in process
system.run('"{bin}" "{nvm_file}" "{model}" "{out_dir}" '
File "/code/opendm/system.py", line 106, in run
raise SubprocessException("Child returned {}".format(retcode), retcode)
opendm.system.SubprocessException: Child returned 1
===== Done, human-readable information to follow... =====
[ERROR] Uh oh! Processing stopped because of strange values in the reconstruction. This is often a sign that the input data has some issues or the software cannot deal with it. Have you followed best practices for data acquisition? See https://docs.opendronemap.org/flying/
The dataset consist of 1387 photos with >25MB each (apologies for not posting any). I can put a few into a cloud service, if that helps.
The photos have minimal overlap (70% front, 60% side) but that worked on a smaller dataset.
Does anyone has an idea what went wrong here?
Thanks!