Skip to content

Commit

Permalink
ensure the scale is set when __call__
Browse files Browse the repository at this point in the history
  • Loading branch information
psobolewskiPhD committed Nov 29, 2024
1 parent e599dbf commit 3d5880d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions micro_sam/sam_annotator/_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,9 @@ def __call__(self, skip_validate=False):
ndim = image.data.ndim
state.image_shape = image.data.shape

# Set layer scale
state.image_scale = tuple(image.scale)

# Process tile_shape and halo, set other data.
tile_shape, halo = _process_tiling_inputs(self.tile_x, self.tile_y, self.halo_x, self.halo_y)
save_path = None if self.embeddings_save_path == "" else self.embeddings_save_path
Expand Down

0 comments on commit 3d5880d

Please sign in to comment.