Fix --optimize-disk-space issue with OpenMVS

pull/1209/head
Piero Toffanin 2020-11-21 13:16:38 -05:00
rodzic abb9aab94c
commit 1287f09bc3
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -88,6 +88,9 @@ class ODMOpenMVSStage(types.ODM_Stage):
if os.path.exists(f):
os.remove(f)
shutil.rmtree(depthmaps_dir)
os.remove(octx.path("undistorted", "tracks.csv"))
os.remove(octx.path("undistorted", "reconstruction.json"))
else:
log.ODM_WARNING('Found a valid OpenMVS reconstruction file in: %s' %
tree.openmvs_model)

Wyświetl plik

@ -132,8 +132,6 @@ class ODMOpenSfMStage(types.ODM_Stage):
if args.optimize_disk_space:
os.remove(octx.path("tracks.csv"))
os.remove(octx.path("undistorted", "tracks.csv"))
os.remove(octx.path("undistorted", "reconstruction.json"))
if io.dir_exists(octx.path("undistorted", "depthmaps")):
files = glob.glob(octx.path("undistorted", "depthmaps", "*.npz"))
for f in files: