Merge pull request #356 from qslia/qslia
print assert error correctly Former-commit-id: f0170cc7c0c2b97709ef4b0249cbb1c55b29e15f
This commit is contained in:
commit
e9d50a9524
|
@ -49,7 +49,7 @@ def get_args():
|
|||
parser.add_argument('--model', '-m', default='MODEL.pth', metavar='FILE',
|
||||
help='Specify the file in which the model is stored')
|
||||
parser.add_argument('--input', '-i', metavar='INPUT', nargs='+', help='Filenames of input images', required=True)
|
||||
parser.add_argument('--output', '-o', metavar='INPUT', nargs='+', help='Filenames of output images')
|
||||
parser.add_argument('--output', '-o', metavar='OUTPUT', nargs='+', help='Filenames of output images')
|
||||
parser.add_argument('--viz', '-v', action='store_true',
|
||||
help='Visualize the images as they are processed')
|
||||
parser.add_argument('--no-save', '-n', action='store_true', help='Do not save the output masks')
|
||||
|
|
|
@ -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