Add assert on stitch size vs batch size

This commit is contained in:
Luis Quesada
2024-05-15 22:04:47 +02:00
parent 001b7412ce
commit dd346c3d58
+1
View File
@@ -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 = {}