Skip to content

Commit

Permalink
Enable min object size of up to 10000 in auto segmentation widget
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Sep 2, 2023
1 parent 1d11930 commit 9bad755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion micro_sam/sam_annotator/annotator_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def _changed_param(amg, **params):
return None


@magicgui(call_button="Automatic Segmentation")
@magicgui(
call_button="Automatic Segmentation",
min_object_size={"min": 0, "max": 10000},
)
def _autosegment_widget(
v: Viewer,
pred_iou_thresh: float = 0.88,
Expand Down
5 changes: 4 additions & 1 deletion micro_sam/sam_annotator/annotator_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ def _segment_volume_widget(
v.layers[layer].refresh()


@magicgui(call_button="Automatic Segmentation")
@magicgui(
call_button="Automatic Segmentation",
min_object_size={"min": 0, "max": 10000}
)
def _autosegment_widget(
v: Viewer,
pred_iou_thresh: float = 0.88,
Expand Down

0 comments on commit 9bad755

Please sign in to comment.