This commit is contained in:
Frederik Ring 2025-05-23 21:05:16 +02:00 committed by GitHub
commit eb0c7110c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,7 @@
#
import os
import sys
import logging
from argparse import ArgumentParser
import shutil
@ -27,6 +28,7 @@ args = parser.parse_args()
colmap_command = '"{}"'.format(args.colmap_executable) if len(args.colmap_executable) > 0 else "colmap"
magick_command = '"{}"'.format(args.magick_executable) if len(args.magick_executable) > 0 else "magick"
use_gpu = 1 if not args.no_gpu else 0
exit = lambda code: sys.exit(code if code <= 255 else 1)
if not args.skip_matching:
os.makedirs(args.source_path + "/distorted/sparse", exist_ok=True)