From f728464a52fd6fb0abe98b3d4d06fb8964da69b7 Mon Sep 17 00:00:00 2001 From: laynholt Date: Tue, 30 Sep 2025 16:46:56 +0000 Subject: [PATCH] fix: file loading --- core/segmentator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/segmentator.py b/core/segmentator.py index 4f6bddc..9900335 100644 --- a/core/segmentator.py +++ b/core/segmentator.py @@ -749,7 +749,7 @@ class CellSegmentator: """ # Collect sorted list of image paths images = sorted( - chain(glob.glob( + chain.from_iterable(glob.glob( os.path.join(images_dir, f'*.{ext}')) for ext in SUPPORTED_IMAGE_FORMATS ) ) @@ -759,7 +759,7 @@ class CellSegmentator: if masks_dir is not None: # Collect and validate sorted list of mask paths masks = sorted( - chain(glob.glob( + chain.from_iterable(glob.glob( os.path.join(masks_dir, f'*.{ext}')) for ext in SUPPORTED_IMAGE_FORMATS ) )