Skip to content

Commit

Permalink
fix: 🐛 Ensure input shapes are integers in Architecture class
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed Jan 9, 2025
1 parent 0746171 commit b39e283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cellmap_models/pytorch/cosem/load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
"""
Expand Down

0 comments on commit b39e283

Please sign in to comment.