kopia lustrzana https://github.com/OpenDroneMap/ODM
Always use entwine first
rodzic
47bd1d600d
commit
09a4d0cdf6
|
@ -28,17 +28,13 @@ def build(input_point_cloud_files, output_path, max_concurrency=8, rerun=False):
|
||||||
if rerun:
|
if rerun:
|
||||||
dir_cleanup()
|
dir_cleanup()
|
||||||
|
|
||||||
# On Windows we always use Untwine
|
# Attempt with entwine (faster, more memory hungry)
|
||||||
if sys.platform == 'win32':
|
try:
|
||||||
|
build_entwine(input_point_cloud_files, tmpdir, output_path, max_concurrency=max_concurrency)
|
||||||
|
except Exception as e:
|
||||||
|
log.ODM_WARNING("Cannot build EPT using entwine (%s), attempting with untwine..." % str(e))
|
||||||
|
dir_cleanup()
|
||||||
build_untwine(input_point_cloud_files, tmpdir, output_path, max_concurrency=max_concurrency)
|
build_untwine(input_point_cloud_files, tmpdir, output_path, max_concurrency=max_concurrency)
|
||||||
else:
|
|
||||||
# Attempt with entwine (faster, more memory hungry)
|
|
||||||
try:
|
|
||||||
build_entwine(input_point_cloud_files, tmpdir, output_path, max_concurrency=max_concurrency)
|
|
||||||
except Exception as e:
|
|
||||||
log.ODM_WARNING("Cannot build EPT using entwine (%s), attempting with untwine..." % str(e))
|
|
||||||
dir_cleanup()
|
|
||||||
build_untwine(input_point_cloud_files, tmpdir, output_path, max_concurrency=max_concurrency)
|
|
||||||
|
|
||||||
if os.path.exists(tmpdir):
|
if os.path.exists(tmpdir):
|
||||||
shutil.rmtree(tmpdir)
|
shutil.rmtree(tmpdir)
|
||||||
|
|
Ładowanie…
Reference in New Issue