Skip to content

Commit 605a568

Browse files
Add default values for predict_with_padding and tiling
1 parent f241d3a commit 605a568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bioimageio/core/prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def check_padding(padding):
183183
def predict_with_padding(
184184
prediction_pipeline: PredictionPipeline,
185185
inputs: Union[xr.DataArray, List[xr.DataArray], Tuple[xr.DataArray]],
186-
padding: Union[bool, Dict[str, int]],
186+
padding: Union[bool, Dict[str, int]] = True,
187187
pad_right: bool = True,
188188
) -> List[xr.DataArray]:
189189
"""Run prediction with padding for a single set of input(s) with a bioimage.io model.
@@ -305,7 +305,7 @@ def check_tiling(tiling):
305305
def predict_with_tiling(
306306
prediction_pipeline: PredictionPipeline,
307307
inputs: Union[xr.DataArray, List[xr.DataArray], Tuple[xr.DataArray]],
308-
tiling: Union[bool, Dict[str, Dict[str, int]]],
308+
tiling: Union[bool, Dict[str, Dict[str, int]]] = True,
309309
verbose: bool = False,
310310
) -> List[xr.DataArray]:
311311
"""Run prediction with tiling for a single set of input(s) with a bioimage.io model.

0 commit comments

Comments
 (0)