diff --git a/src/cellmap_models/pytorch/cosem/load_model.py b/src/cellmap_models/pytorch/cosem/load_model.py index 1857087..05f52df 100755 --- a/src/cellmap_models/pytorch/cosem/load_model.py +++ b/src/cellmap_models/pytorch/cosem/load_model.py @@ -250,9 +250,9 @@ def compute_minimal_shapes(self): ) * np.prod(self.downsample_factors[lv:], axis=0) min_output_shape -= total_pad - self.min_input_shape = min_input_shape - self.min_output_shape = min_output_shape - self.input_size_step = step + self.min_input_shape = [int(s) for s in min_input_shape] + self.min_output_shape = [int(s) for s in min_output_shape] + self.input_size_step = int(step) def round_to_valid_input_shape(self, shape=None, mode="grow"): """