kopia lustrzana https://github.com/OpenDroneMap/ODM
Fix --optimize-disk-space issue with OpenMVS
rodzic
abb9aab94c
commit
1287f09bc3
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue