mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-08 14:39:00 +00:00
Merge pull request #187 from laclouis5/development
Fixed glob in dataset Former-commit-id: 15df8266027d48ec1e78610338283c2a5dca7f7b
This commit is contained in:
commit
aa9defe6a5
|
@ -43,8 +43,8 @@ class BasicDataset(Dataset):
|
|||
|
||||
def __getitem__(self, i):
|
||||
idx = self.ids[i]
|
||||
mask_file = glob(self.masks_dir + idx + '*')
|
||||
img_file = glob(self.imgs_dir + idx + '*')
|
||||
mask_file = glob(self.masks_dir + idx + '.*')
|
||||
img_file = glob(self.imgs_dir + idx + '.*')
|
||||
|
||||
assert len(mask_file) == 1, \
|
||||
f'Either no mask or multiple masks found for the ID {idx}: {mask_file}'
|
||||
|
|
Loading…
Reference in a new issue