From d035d279750af1572ee50f405471da9646dd6d82 Mon Sep 17 00:00:00 2001 From: weixin_46229132 Date: Mon, 17 Mar 2025 16:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8B=BC=E6=A8=A1=E5=BC=8F=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=AB=98=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/odm_monitor.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/utils/odm_monitor.py b/utils/odm_monitor.py index 57f4d7f..6814f4e 100644 --- a/utils/odm_monitor.py +++ b/utils/odm_monitor.py @@ -128,7 +128,7 @@ class ODMProcessMonitor: self.logger.error(f"检查正射影像时发生错误: {str(e)}") return False - def run_odm_with_monitor(self, grid_dir: str, grid_id: tuple, produce_dem: bool = False, accuracy = 'medium') -> Tuple[bool, str]: + def run_odm_with_monitor(self, grid_dir: str, grid_id: tuple, produce_dem: bool = False, accuracy='medium') -> Tuple[bool, str]: """运行ODM命令""" self.logger.info(f"开始处理网格 ({grid_id[0]},{grid_id[1]})") success = False @@ -158,6 +158,7 @@ class ODMProcessMonitor: f"--use-hybrid-bundle-adjustment " f"--optimize-disk-space " # f"--feature-type sift " + # f"--orthophoto-resolution 8 " ) if accuracy == "high": docker_command += ( @@ -168,18 +169,16 @@ class ODMProcessMonitor: f"--orthophoto-resolution 2 " ) - # 根据是否使用lowest quality添加参数 - if use_lowest_quality: - docker_command += f"--feature-quality lowest " - - docker_command += f"--orthophoto-resolution 8 " - - if produce_dem: + if produce_dem and self.mode != "快拼模式": docker_command += ( f"--dsm " f"--dtm " ) + # 根据是否使用lowest quality添加参数 + if use_lowest_quality: + docker_command += f"--feature-quality lowest " + if self.mode == "快拼模式": docker_command += ( # f"--fast-orthophoto "