Skip to content

Commit 7669495

Browse files
Update scale range to be compatible with CSBDeep
1 parent e093619 commit 7669495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/core/prediction_pipeline/_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def apply(self, tensor: xr.DataArray) -> xr.DataArray:
209209
v_lower = get_stat(ref_name, Percentile(self.min_percentile, axes=axes))
210210
v_upper = get_stat(ref_name, Percentile(self.max_percentile, axes=axes))
211211

212-
return ensure_dtype((tensor - v_lower) / v_upper, dtype="float32")
212+
return ensure_dtype((tensor - v_lower) / (v_upper - v_lower), dtype="float32")
213213

214214
def __post_init__(self):
215215
super().__post_init__()

0 commit comments

Comments
 (0)