Skip to content

Commit 2a717f3

Browse files
author
Theodoros Katzalis
committed
Fix prediction with blocking
There was an issue during the merging process of the blocks. The `local_slice` needs the halo information and not the padding. Since padding can be applied only if the expansion doesn't include the actual image pixels.
1 parent 66665c5 commit 2a717f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bioimageio/core/block_meta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def local_slice(self) -> PerAxis[SliceInfo]:
161161
return Frozen(
162162
{
163163
a: SliceInfo(
164-
self.padding[a].left,
165-
self.padding[a].left + self.inner_shape[a],
164+
self.halo[a].left,
165+
self.halo[a].left + self.inner_shape[a],
166166
)
167167
for a in self.inner_slice
168168
}

0 commit comments

Comments
 (0)