Skip to content

Commit

Permalink
Merge pull request #87 from neuro-ml/develop
Browse files Browse the repository at this point in the history
Compatibility for custom PatchCombiner
  • Loading branch information
maxme1 authored Jan 22, 2024
2 parents 778d36b + 5580873 commit 62eb807
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpipe/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.2'
__version__ = '0.3.3'
6 changes: 5 additions & 1 deletion dpipe/predict/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,13 @@ def wrapper(x, *args, **kwargs):
else:
patches = pmap(predict, input_patches, *args, **kwargs)

prediction_kwargs = {'combiner': combiner, 'get_boxes': get_boxes}
if not use_torch:
prediction_kwargs['use_torch'] = use_torch

prediction = combine(
patches_wrapper(patches), extract(x.shape, input_axis), local_stride, axis,
combiner=combiner, get_boxes=get_boxes, use_torch=use_torch
**prediction_kwargs
)

if valid:
Expand Down

0 comments on commit 62eb807

Please sign in to comment.