mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-09 15:02:03 +00:00
print assert error correctly
Former-commit-id: 8c7feff7cf740e788228839883a592c87097add2
This commit is contained in:
parent
182cbd48f9
commit
52ced2e757
|
@ -64,7 +64,7 @@ class BasicDataset(Dataset):
|
|||
img = self.load(img_file[0])
|
||||
|
||||
assert img.size == mask.size, \
|
||||
'Image and mask {name} should be the same size, but are {img.size} and {mask.size}'
|
||||
f'Image and mask {name} should be the same size, but are {img.size} and {mask.size}'
|
||||
|
||||
img = self.preprocess(img, self.scale, is_mask=False)
|
||||
mask = self.preprocess(mask, self.scale, is_mask=True)
|
||||
|
|
Loading…
Reference in a new issue