Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Fix params name on `ImagePrompter` example (#2340)

João Gustavo A. Amorima840e5457173
diff --git a/docs/source/models/segment_anything.rst b/docs/source/models/segment_anything.rst
index bcfb631f4..282b459af 100644
--- a/docs/source/models/segment_anything.rst
+++ b/docs/source/models/segment_anything.rst
@@ -127,8 +127,8 @@ to query the image masks from the SAM model.
# Runs the prediction with all prompts
prediction = prompter.predict(
- point_coords=keypoints,
- point_labels=keypoints_labels,
+ keypoints=keypoints,
+ keypoints_labels=keypoints_labels,
boxes=boxes,
multimask_output=True,
)
@@ -136,8 +136,8 @@ to query the image masks from the SAM model.
#----------------------------------------------
# or run the prediction with just the keypoints
prediction = prompter.predict(
- point_coords=keypoints,
- point_labels=keypoints_labels,
+ keypoints=keypoints,
+ keypoints_labels=keypoints_labels,
multimask_output=True,
)