修复bug
This commit is contained in:
parent
dfc3ad8191
commit
32f73eef8a
@ -261,10 +261,10 @@ class ImagePreprocessor:
|
|||||||
self.copy_images(grid_points)
|
self.copy_images(grid_points)
|
||||||
self.logger.info("预处理任务完成")
|
self.logger.info("预处理任务完成")
|
||||||
|
|
||||||
# self.odm_monitor.process_all_grids(grid_points)
|
self.odm_monitor.process_all_grids(grid_points)
|
||||||
# self.merge_tif(grid_points)
|
self.merge_tif(grid_points)
|
||||||
# self.merge_obj(grid_points, translations)
|
self.merge_ply(grid_points)
|
||||||
# self.merge_ply(grid_points)
|
self.merge_obj(grid_points, translations)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error(f"处理过程中发生错误: {str(e)}", exc_info=True)
|
self.logger.error(f"处理过程中发生错误: {str(e)}", exc_info=True)
|
||||||
raise
|
raise
|
||||||
@ -273,8 +273,8 @@ class ImagePreprocessor:
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# 创建配置
|
# 创建配置
|
||||||
config = PreprocessConfig(
|
config = PreprocessConfig(
|
||||||
image_dir=r"E:\datasets\UAV\134\project\images",
|
image_dir=r"E:\datasets\UAV\1815\project\images",
|
||||||
output_dir=r"G:\ODM_output\134_test",
|
output_dir=r"G:\ODM_output\1815",
|
||||||
|
|
||||||
cluster_eps=0.01,
|
cluster_eps=0.01,
|
||||||
cluster_min_samples=5,
|
cluster_min_samples=5,
|
||||||
@ -290,7 +290,7 @@ if __name__ == "__main__":
|
|||||||
filter_dense_distance_threshold=10,
|
filter_dense_distance_threshold=10,
|
||||||
filter_time_threshold=timedelta(minutes=5),
|
filter_time_threshold=timedelta(minutes=5),
|
||||||
|
|
||||||
grid_size=300,
|
grid_size=500,
|
||||||
grid_overlap=0.1,
|
grid_overlap=0.1,
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class ODMProcessMonitor:
|
|||||||
f"-v {grid_dir}:/datasets "
|
f"-v {grid_dir}:/datasets "
|
||||||
f"opendronemap/odm:gpu "
|
f"opendronemap/odm:gpu "
|
||||||
f"--project-path /datasets project "
|
f"--project-path /datasets project "
|
||||||
f"--max-concurrency 10 "
|
f"--max-concurrency 15 "
|
||||||
f"--force-gps "
|
f"--force-gps "
|
||||||
f"--feature-quality lowest "
|
f"--feature-quality lowest "
|
||||||
f"--orthophoto-resolution 10 "
|
f"--orthophoto-resolution 10 "
|
||||||
|
Loading…
Reference in New Issue
Block a user