Skip to content

Commit

Permalink
reenable test_get_block_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Nov 11, 2024
1 parent 07989d3 commit 20545fa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test_digest_spec.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import pytest

from bioimageio.spec import load_description
from bioimageio.spec.model import v0_5


# TODO: don't just test with unet2d_nuclei_broad_model
@pytest.mark.skip("get_io_sample_block_metas needs improvements")
def test_get_block_transform(unet2d_nuclei_broad_model: str):
from bioimageio.core.axis import AxisId
from bioimageio.core.common import MemberId
Expand All @@ -25,18 +22,21 @@ def test_get_block_transform(unet2d_nuclei_broad_model: str):
if isinstance(a.size, v0_5.ParameterizedSize)
}

input_sample_shape = {
MemberId("raw"): {
AxisId("batch"): 3,
AxisId("channel"): 1,
AxisId("x"): 4000,
AxisId("y"): 3000,
}
}

_, blocks = get_io_sample_block_metas(
model,
input_sample_shape={
MemberId("raw"): {
AxisId("batch"): 3,
AxisId("channel"): 1,
AxisId("x"): 4000,
AxisId("y"): 3000,
}
},
input_sample_shape=input_sample_shape,
ns=ns,
)

for ipt_block, out_block in blocks:
trf_block = ipt_block.get_transformed(block_transform)
assert out_block == trf_block

0 comments on commit 20545fa

Please sign in to comment.