kopia lustrzana https://github.com/OpenDroneMap/ODM
Delete progress folders when using --rerun-all.
rodzic
626e955e28
commit
b87fac7ddc
12
run.py
12
run.py
|
@ -6,6 +6,7 @@ from opendm import system
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import ecto
|
import ecto
|
||||||
|
import os
|
||||||
|
|
||||||
from scripts.odm_app import ODMApp
|
from scripts.odm_app import ODMApp
|
||||||
|
|
||||||
|
@ -26,6 +27,17 @@ if __name__ == '__main__':
|
||||||
if args.project_path is None:
|
if args.project_path is None:
|
||||||
usage()
|
usage()
|
||||||
|
|
||||||
|
#If user asks to rerun everything, delete all of the progress directories.
|
||||||
|
if args.rerun_all:
|
||||||
|
os.system("rm -rf "
|
||||||
|
+ args.project_path + "images_resize/ "
|
||||||
|
+ args.project_path + "odm_georeferencing/ "
|
||||||
|
+ args.project_path + "odm_meshing/ "
|
||||||
|
+ args.project_path + "odm_orthophoto/ "
|
||||||
|
+ args.project_path + "odm_texturing/ "
|
||||||
|
+ args.project_path + "opensfm/ "
|
||||||
|
+ args.project_path + "pmvs/")
|
||||||
|
|
||||||
# create an instance of my App BlackBox
|
# create an instance of my App BlackBox
|
||||||
# internally configure all tasks
|
# internally configure all tasks
|
||||||
app = ODMApp(args=args)
|
app = ODMApp(args=args)
|
||||||
|
|
Ładowanie…
Reference in New Issue