SAM 2 Segment Anything Demo

by premkishor0007co.huggingface.premkishor0007/sam2-image-segmentation

How the score works

  • Remote endpoint
  • 4 tools
  • APACHE-2.0

Tools

  • sam2_image_segmentation_handle_segment_everything Automatically segment all objects in the scene using SAM 2 mask generation. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool
  • sam2_image_segmentation_on_clear Reset points, masks and status.
  • sam2_image_segmentation_on_image_select Event handler for interactive click on the input image. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool
  • sam2_image_segmentation_on_undo Remove the most recent prompt point. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool

As the server's own listing gives them. We never call a tool.