diff --git a/inpaint_cropandstitch.py b/inpaint_cropandstitch.py index c15082c..c887608 100644 --- a/inpaint_cropandstitch.py +++ b/inpaint_cropandstitch.py @@ -366,6 +366,7 @@ class InpaintStitch: results = [] batch_size = inpainted_image.shape[0] + assert len(stitch['x']) == batch_size, "Stitch size doesn't match image batch size" for b in range(batch_size): one_image = inpainted_image[b] one_stitch = {}