Set maxTiles check only in absence of georeferenced photos

pull/1725/head
Piero Toffanin 2023-11-28 00:43:11 -05:00
rodzic 7e05a5b04e
commit 2d2b809530
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -101,7 +101,7 @@ class ODMDEMStage(types.ODM_Stage):
decimation=args.dem_decimation,
max_workers=args.max_concurrency,
keep_unfilled_copy=args.dem_euclidean_map,
max_tiles=math.ceil(len(reconstruction.photos) / 2)
max_tiles=None if reconstruction.has_geotagged_photos() else math.ceil(len(reconstruction.photos) / 2)
)
dem_geotiff_path = os.path.join(odm_dem_root, "{}.tif".format(product))

Wyświetl plik

@ -60,7 +60,7 @@ class ODMeshingStage(types.ODM_Stage):
available_cores=args.max_concurrency,
method='poisson' if args.fast_orthophoto else 'gridded',
smooth_dsm=True,
max_tiles=math.ceil(len(reconstruction.photos) / 2))
max_tiles=None if reconstruction.has_geotagged_photos() else math.ceil(len(reconstruction.photos) / 2))
else:
log.ODM_WARNING('Found a valid ODM 2.5D Mesh file in: %s' %
tree.odm_25dmesh)