I tried to use one ground control point( the document recommends 5 gcps at least but I just want to see if one gcp can improve the results). I run the project on docker and it gave me the error: empty initial point-cloud.
The images and gcp file can be found here: ODM_project - Google Drive
I simply use the following two commands in docker on Windows10:
docker run -ti --rm -v /my/project:/datasets/code opendronemap/odm --project-path /datasets
docker run -ti --rm -v /my/project:/datasets/code opendronemap/odm --project-path /datasets --force-gps
Both will give the same error.
The output is:
[INFO] Initializing ODM - Fri Apr 09 23:06:33 2021
[INFO] ==============
[INFO] build_overviews: False
[INFO] camera_lens: auto
[INFO] cameras: {}
[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_report
[INFO] fast_orthophoto: False
[INFO] feature_quality: low
[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: 8
[INFO] merge: all
[INFO] mesh_octree_depth: 11
[INFO] mesh_size: 200000
[INFO] min_num_features: 8000
[INFO] name: code
[INFO] optimize_disk_space: False
[INFO] orthophoto_compression: DEFLATE
[INFO] orthophoto_cutline: 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_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/code/images
[INFO] Loading 50 images
[INFO] Wrote images database: /datasets/code/images.json
[INFO] Found 50 usable images
[INFO] Parsing SRS header: WGS84 UTM 10S
[INFO] Parsing SRS header: WGS84 UTM 10S
[INFO] Parsing SRS header: WGS84 UTM 10S
[INFO] 11 GCP points will be used for georeferencing
[INFO] Generated coords file from GCP: WGS84 UTM 10S
[INFO] Wrote /datasets/code/odm_georeferencing/odm_georeferencing_model_geo.txt
[INFO] Parsing SRS header: WGS84 UTM 10S
[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
[INFO] Writing exif overrides
[INFO] Maximum photo dimensions: 4096px
[INFO] PyOpenCL is missing (not a GPU build)
[INFO] Altitude data detected, enabling it for GPS alignment
[INFO] [âuse_exif_size: noâ, âflann_algorithm: KDTREEâ, âfeature_process_size: 512â, âfeature_min_frames: 8000â, âprocesses: 8â, âmatching_gps_neighbors: 8â, âmatching_gps_distance: 0â, âoptimize_camera_parameters: yesâ, âundistorted_image_format: tifâ, âbundle_outlier_filtering_type: AUTOâ, âalign_orientation_prior: verticalâ, âtriangulation_type: ROBUSTâ, âretriangulation_ratio: 2â, âfeature_type: SIFTâ, âuse_altitude_tag: yesâ, âalign_method: autoâ, âlocal_bundle_radius: 0â, âbundle_use_gcp: yesâ, âbundle_use_gps: noâ]
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm extract_metadata â/datasets/code/opensfmâ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm detect_features â/datasets/code/opensfmâ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm match_features â/datasets/code/opensfmâ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm create_tracks â/datasets/code/opensfmâ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm reconstruct â/datasets/code/opensfmâ
[INFO] Export reconstruction stats
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm compute_statistics --diagram_max_points 100000 â/datasets/code/opensfmâ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm export_geocoords --reconstruction --proj â+proj=utm +zone=10 +south +datum=WGS84 +units=m +no_defs +type=crsâ --offset-x 596470.0 --offset-y 4139520.0 â/datasets/code/opensfmâ
[INFO] Updating /datasets/code/opensfm/config.yaml
[INFO] undistorted_image_max_size: 4096
[INFO] Undistorting /datasets/code/opensfm âŚ
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm export_visualsfm --points â/datasets/code/opensfmâ
[INFO] Finished opensfm stage
[INFO] Running openmvs stage
[INFO] running /code/SuperBuild/src/opensfm/bin/opensfm export_openmvs â/datasets/code/opensfmâ
[INFO] Running dense reconstruction. This might take a while.
[INFO] Estimating depthmaps
[INFO] running /code/SuperBuild/install/bin/OpenMVS/DensifyPointCloud â/datasets/code/opensfm/undistorted/openmvs/scene.mvsâ --resolution-level 3 --min-resolution 512 --max-resolution 4096 --max-threads 8 --number-views-fuse 2 -w â/datasets/code/opensfm/undistorted/openmvs/depthmapsâ -v 0
23:09:42 [App ] Build date: Mar 31 2021, 18:59:43
23:09:42 [App ] CPU: Intel(R) Core⢠i7-7700HQ CPU @ 2.80GHz (8 cores)
23:09:42 [App ] RAM: 12.38GB Physical Memory 4.00GB Virtual Memory
23:09:42 [App ] OS: Linux 5.4.72-microsoft-standard-WSL2 (x86_64)
23:09:42 [App ] SSE & AVX compatible CPU & OS detected
23:09:42 [App ] Command line: /datasets/code/opensfm/undistorted/openmvs/scene.mvs --resolution-level 3 --min-resolution 512 --max-resolution 4096 --max-threads 8 --number-views-fuse 2 -w /datasets/code/opensfm/undistorted/openmvs/depthmaps -v 0
23:09:49 [App ] Preparing images for dense reconstruction completed: 50 images (7s176ms)
23:09:49 [App ] Selecting images for dense reconstruction completed: 0 images (43ms)
Fused depth-maps 0 (100%, 0ms)
23:09:49 [App ] Densifying point-cloud completed: 0 points (7s223ms)
23:09:49 [App ] MEMORYINFO: {
23:09:49 [App ] VmPeak: 1483052 kB
23:09:49 [App ] VmSize: 1212732 kB
23:09:49 [App ] } ENDINFO
[INFO] running /code/SuperBuild/install/bin/OpenMVS/DensifyPointCloud --filter-point-cloud -1 -i â/datasets/code/opensfm/undistorted/openmvs/scene_dense.mvsâ -v 0
23:09:49 [App ] Build date: Mar 31 2021, 18:59:43
23:09:49 [App ] CPU: Intel(R) Core⢠i7-7700HQ CPU @ 2.80GHz (8 cores)
23:09:49 [App ] RAM: 12.38GB Physical Memory 4.00GB Virtual Memory
23:09:49 [App ] OS: Linux 5.4.72-microsoft-standard-WSL2 (x86_64)
23:09:49 [App ] SSE & AVX compatible CPU & OS detected
23:09:49 [App ] Command line: --filter-point-cloud -1 -i /datasets/code/opensfm/undistorted/openmvs/scene_dense.mvs -v 0
23:09:49 [App ] error: empty initial point-cloud
Traceback (most recent call last):
File â/code/run.pyâ, line 68, in
app.execute()
File â/code/stages/odm_app.pyâ, line 82, in execute
self.first_stage.run()
File â/code/opendm/types.pyâ, line 338, in run
self.next_stage.run(outputs)
File â/code/opendm/types.pyâ, line 338, in run
self.next_stage.run(outputs)
File â/code/opendm/types.pyâ, line 338, in run
self.next_stage.run(outputs)
[Previous line repeated 1 more time]
File â/code/opendm/types.pyâ, line 319, in run
self.process(self.args, outputs)
File â/code/stages/openmvs.pyâ, line 160, in process
system.run(â%s %sâ % (context.omvs_densify_path, â '.join(config)))
File â/code/opendm/system.pyâ, line 79, in run
raise Exception(âChild returned {}â.format(retcode))
Exception: Child returned 1
Thanks in advance for any help.