Skip to content

Commit ddf86fc

Browse files
committed
log block shape
1 parent 667eeac commit ddf86fc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bioimageio/core/_prediction_pipeline.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Union,
1313
)
1414

15+
from loguru import logger
1516
from tqdm import tqdm
1617

1718
from bioimageio.spec.model import AnyModelDescr, v0_4, v0_5
@@ -188,9 +189,15 @@ def predict_sample_with_fixed_blocking(
188189
)
189190
input_blocks = list(input_blocks)
190191
predicted_blocks: List[SampleBlock] = []
192+
logger.info(
193+
"split sample shape {} into {} blocks of {}.",
194+
{k: dict(v) for k, v in sample.shape.items()},
195+
n_blocks,
196+
{k: dict(v) for k, v in input_block_shape.items()},
197+
)
191198
for b in tqdm(
192199
input_blocks,
193-
desc=f"predict sample {sample.id or ''} with {self.model_description.id or self.model_description.name}",
200+
desc=f"predict {sample.id or ''} with {self.model_description.id or self.model_description.name}",
194201
unit="block",
195202
unit_divisor=1,
196203
total=n_blocks,

0 commit comments

Comments
 (0)