Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions stages/splitmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ def process(self, args, outputs):
image_groups_file = os.path.join(args.project_path, "image_groups.txt")
if 'split_image_groups_is_set' in args:
image_groups_file = os.path.abspath(args.split_image_groups)

if io.file_exists(image_groups_file):
outputs['large'] = True
if args.split < 999999:
args.split = 999999
log.ODM_WARNING('image_groups.txt and split both set. Using groups in image_groups.txt.')
elif len(photos) > args.split:
# check for availability of geotagged photos
if reconstruction.has_geotagged_photos():
outputs['large'] = True
else:
log.ODM_WARNING('Could not perform split-merge as GPS information in photos or image_groups.txt is missing.')
else:
log.ODM_WARNING('Could not perform split-merge as GPS information in photos or image_groups.txt is missing.')

if outputs['large']:
# If we have a cluster address, we'll use a distributed workflow
Expand Down
Loading