Remove undistorted images when possible

Former-commit-id: 8525bc19d1
pull/1161/head
Piero Toffanin 2020-03-30 11:05:39 -04:00
rodzic 38ba8726bb
commit e7a03fe342
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -133,4 +133,8 @@ class ODMMvsTexStage(types.ODM_Stage):
for r in nonloc.runs:
if io.file_exists(r['model']):
os.remove(r['model'])
undistorted_images_path = os.path.join(tree.opensfm, "undistorted", "images")
if io.dir_exists(undistorted_images_path):
shutil.rmtree(undistorted_images_path)