Skip to content

Commit

Permalink
changed the multimask_output to False to get only one mask from SAM
Browse files Browse the repository at this point in the history
  • Loading branch information
mese79 committed Nov 15, 2024
1 parent 16c5e4e commit 97d880d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featureforest/postprocess/postprocess_with_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_sam_mask(
point_coords=None,
point_labels=None,
box=input_boxes[start:end],
multimask_output=True,
multimask_output=False,
)
reduced_axis = (0, 1) if masks.ndim == 4 else 0
final_mask = np.bitwise_or(
Expand Down

0 comments on commit 97d880d

Please sign in to comment.