monitor输出更新

This commit is contained in:
龙澳 2024-12-28 22:05:13 +08:00
parent a7eb5f5216
commit 28126bc3be
2 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,7 @@ class ImagePreprocessor:
f"grid_{grid_idx + 1}", f"grid_{grid_idx + 1}",
"project", "project",
"odm_orthophoto", "odm_orthophoto",
"odm_orthophoto.tif" "odm_orthophoto.original.tif"
) )
# 检查TIF文件是否存在 # 检查TIF文件是否存在
@ -318,8 +318,8 @@ class ImagePreprocessor:
if __name__ == "__main__": if __name__ == "__main__":
# 创建配置 # 创建配置
config = PreprocessConfig( config = PreprocessConfig(
image_dir=r"G:\error_data\20241024100834\project\images", image_dir=r"G:\error_data\20241104140457\code\images",
output_dir=r"G:\ODM_output\20241024100834", output_dir=r"G:\ODM_output\20241104140457",
cluster_eps=0.01, cluster_eps=0.01,
cluster_min_samples=5, cluster_min_samples=5,

View File

@ -52,8 +52,8 @@ class ODMProcessMonitor:
# 检查执行结果 # 检查执行结果
if self._check_success(grid_dir): if self._check_success(grid_dir):
self.logger.info(f"网格 {grid_idx + 1} 处理成功")
self.logger.info(stdout, stderr) self.logger.info(stdout, stderr)
self.logger.info(f"网格 {grid_idx + 1} 处理成功")
return True, "" return True, ""
return False, f"网格 {grid_idx + 1} 处理失败" return False, f"网格 {grid_idx + 1} 处理失败"