We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c035f commit 92bb250Copy full SHA for 92bb250
convert.py
@@ -10,6 +10,7 @@
10
#
11
12
import os
13
+import sys
14
import logging
15
from argparse import ArgumentParser
16
import shutil
@@ -27,6 +28,7 @@
27
28
colmap_command = '"{}"'.format(args.colmap_executable) if len(args.colmap_executable) > 0 else "colmap"
29
magick_command = '"{}"'.format(args.magick_executable) if len(args.magick_executable) > 0 else "magick"
30
use_gpu = 1 if not args.no_gpu else 0
31
+exit = lambda code: sys.exit(code if code <= 255 else 1)
32
33
if not args.skip_matching:
34
os.makedirs(args.source_path + "/distorted/sparse", exist_ok=True)
0 commit comments