diff --git a/utils/data_loading.py b/utils/data_loading.py index 63c4313..d594c57 100644 --- a/utils/data_loading.py +++ b/utils/data_loading.py @@ -58,8 +58,8 @@ class BasicDataset(Dataset): mask_file = list(self.masks_dir.glob(name + self.mask_suffix + '.*')) img_file = list(self.images_dir.glob(name + '.*')) - assert len(mask_file) == 1, f'Either no mask or multiple masks found for the ID {name}: {mask_file}' assert len(img_file) == 1, f'Either no image or multiple images found for the ID {name}: {img_file}' + assert len(mask_file) == 1, f'Either no mask or multiple masks found for the ID {name}: {mask_file}' mask = self.load(mask_file[0]) img = self.load(img_file[0])