kopia lustrzana https://github.com/OpenDroneMap/ODM
Removed --images arg
rodzic
09109f33f9
commit
2cb2ee281b
|
@ -55,10 +55,6 @@ parser = SettingsParser(description='OpenDroneMap',
|
||||||
yaml_file=open(context.settings_path))
|
yaml_file=open(context.settings_path))
|
||||||
|
|
||||||
def config():
|
def config():
|
||||||
parser.add_argument('--images', '-i',
|
|
||||||
metavar='<path>',
|
|
||||||
help='Path to input images'),
|
|
||||||
|
|
||||||
parser.add_argument('--project-path',
|
parser.add_argument('--project-path',
|
||||||
metavar='<path>',
|
metavar='<path>',
|
||||||
help='Path to the project folder')
|
help='Path to the project folder')
|
||||||
|
|
|
@ -220,13 +220,10 @@ class ODM_GeoRef(object):
|
||||||
|
|
||||||
|
|
||||||
class ODM_Tree(object):
|
class ODM_Tree(object):
|
||||||
def __init__(self, root_path, images_path, gcp_file = None):
|
def __init__(self, root_path, gcp_file = None):
|
||||||
# root path to the project
|
# root path to the project
|
||||||
self.root_path = io.absolute_path_file(root_path)
|
self.root_path = io.absolute_path_file(root_path)
|
||||||
if not images_path:
|
|
||||||
self.input_images = io.join_paths(self.root_path, 'images')
|
self.input_images = io.join_paths(self.root_path, 'images')
|
||||||
else:
|
|
||||||
self.input_images = io.absolute_path_file(images_path)
|
|
||||||
|
|
||||||
# modules paths
|
# modules paths
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ def load_images_database(database_file):
|
||||||
class ODMLoadDatasetStage(types.ODM_Stage):
|
class ODMLoadDatasetStage(types.ODM_Stage):
|
||||||
def process(self, args, outputs):
|
def process(self, args, outputs):
|
||||||
# Load tree
|
# Load tree
|
||||||
tree = types.ODM_Tree(args.project_path, args.images, args.gcp)
|
tree = types.ODM_Tree(args.project_path, args.gcp)
|
||||||
outputs['tree'] = tree
|
outputs['tree'] = tree
|
||||||
|
|
||||||
if args.time and io.file_exists(tree.benchmarking):
|
if args.time and io.file_exists(tree.benchmarking):
|
||||||
|
|
Ładowanie…
Reference in New Issue