kopia lustrzana https://github.com/OpenDroneMap/ODM
Limit masks to supported extensions
rodzic
705ccee43a
commit
7beeafc1ea
|
@ -51,7 +51,7 @@ odm_modules_src_path = os.path.join(root_path, "modules")
|
|||
settings_path = os.path.join(root_path, 'settings.yaml')
|
||||
|
||||
# Define supported image extensions
|
||||
supported_extensions = {'.jpg','.jpeg','.png', '.tif', '.tiff'}
|
||||
supported_extensions = {'.jpg','.jpeg','.png', '.tif', '.tiff', '.bmp'}
|
||||
|
||||
# Define the number of cores
|
||||
num_cores = multiprocessing.cpu_count()
|
||||
|
|
|
@ -99,7 +99,7 @@ class ODMLoadDatasetStage(types.ODM_Stage):
|
|||
masks = {}
|
||||
for r in rejects:
|
||||
(p, ext) = os.path.splitext(r)
|
||||
if p[-5:] == "_mask":
|
||||
if p[-5:] == "_mask" and ext.lower() in context.supported_extensions:
|
||||
masks[p] = r
|
||||
|
||||
photos = []
|
||||
|
|
Ładowanie…
Reference in New Issue