Merge pull request #1209 from pierotofy/odsfix

Fix --optimize-disk-space issue with OpenMVS
pull/1213/head
Piero Toffanin 2020-11-21 13:23:02 -05:00 zatwierdzone przez GitHub
commit 44992df14a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -83,7 +83,10 @@ class ODMOpenMVSStage(types.ODM_Stage):
if args.optimize_disk_space:
files = [scene_dense,
os.path.join(tree.openmvs, 'scene_dense.ply'),
os.path.join(tree.openmvs, 'scene_dense_dense_filtered.mvs')]
os.path.join(tree.openmvs, 'scene_dense_dense_filtered.mvs'),
octx.path("undistorted", "tracks.csv"),
octx.path("undistorted", "reconstruction.json")
]
for f in files:
if os.path.exists(f):
os.remove(f)

Wyświetl plik

@ -132,9 +132,16 @@ 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:
os.remove(f)
os.remove(f)
# Keep these if using OpenMVS
if args.fast_orthophoto or args.use_opensfm_dense:
files = [octx.path("undistorted", "tracks.csv"),
octx.path("undistorted", "reconstruction.json")
]
for f in files:
if os.path.exists(f):
os.remove(f)