修改odm参数
This commit is contained in:
parent
a3a5e5738a
commit
aef169e916
@ -23,6 +23,7 @@ class ODMProcessMonitor:
|
|||||||
error_msg = ""
|
error_msg = ""
|
||||||
max_retries = 3
|
max_retries = 3
|
||||||
current_try = 0
|
current_try = 0
|
||||||
|
cpu_cores = os.cpu_count()
|
||||||
|
|
||||||
# 初始化 Docker 客户端
|
# 初始化 Docker 客户端
|
||||||
client = docker.from_env()
|
client = docker.from_env()
|
||||||
@ -40,7 +41,7 @@ class ODMProcessMonitor:
|
|||||||
}
|
}
|
||||||
command = (
|
command = (
|
||||||
f"--project-path /datasets project "
|
f"--project-path /datasets project "
|
||||||
f"--max-concurrency 15 "
|
f"--max-concurrency {cpu_cores} "
|
||||||
f"--force-gps "
|
f"--force-gps "
|
||||||
f"--use-exif "
|
f"--use-exif "
|
||||||
f"--use-hybrid-bundle-adjustment "
|
f"--use-hybrid-bundle-adjustment "
|
||||||
@ -60,6 +61,10 @@ class ODMProcessMonitor:
|
|||||||
f"--dsm "
|
f"--dsm "
|
||||||
f"--dtm "
|
f"--dtm "
|
||||||
)
|
)
|
||||||
|
if current_try == 1:
|
||||||
|
command += (
|
||||||
|
f"--feature-quality low "
|
||||||
|
)
|
||||||
|
|
||||||
command += "--rerun-all"
|
command += "--rerun-all"
|
||||||
|
|
||||||
@ -99,7 +104,6 @@ class ODMProcessMonitor:
|
|||||||
container.remove()
|
container.remove()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
return success, error_msg
|
return success, error_msg
|
||||||
|
|
||||||
def process_all_grids(self, grid_points: Dict[tuple, pd.DataFrame]) -> list:
|
def process_all_grids(self, grid_points: Dict[tuple, pd.DataFrame]) -> list:
|
||||||
|
Loading…
Reference in New Issue
Block a user