We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38024ee commit 63830fbCopy full SHA for 63830fb
1 file changed
src/predtiler/tile_stitcher.py
@@ -15,8 +15,7 @@ def stitch_predictions(predictions:np.ndarray, manager):
15
mng = manager
16
shape = list(mng.data_shape)
17
shape.append(predictions.shape[1])
18
- print(shape)
19
-
+ assert mng.patch_shape[-2:] == predictions.shape[-2:], 'Patch shape and predictions shape must match. Please set the patch shape correctly'
20
output = np.zeros(shape, dtype=predictions.dtype)
21
for dset_idx in range(predictions.shape[0]):
22
# grid start, grid end
0 commit comments