kopia lustrzana https://github.com/OpenDroneMap/ODM
Fix listdir call
rodzic
70d68f59ca
commit
77b0f39589
|
@ -87,7 +87,8 @@ class ODMOpenMVSStage(types.ODM_Stage):
|
||||||
if not args.pc_geometric:
|
if not args.pc_geometric:
|
||||||
extra_config.append("--geometric-iters 0")
|
extra_config.append("--geometric-iters 0")
|
||||||
|
|
||||||
masks = len(os.listdir(os.path.join(tree.opensfm, "undistorted", "masks"))) > 0
|
masks_dir = os.path.join(tree.opensfm, "undistorted", "masks")
|
||||||
|
masks = os.path.exists(masks_dir) and len(os.listdir(masks_dir)) > 0
|
||||||
if masks:
|
if masks:
|
||||||
extra_config.append("--ignore-mask-label 0")
|
extra_config.append("--ignore-mask-label 0")
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue