ProConfig Tutorial
  • Overview & Setup
  • Tutorial Structure
  • Tutorial
    • Hello World with Pro Config
    • Building Workflow
    • Transitions
    • Expressions and Variables
    • An Advanced Example
    • Function Calling Example
    • Random Routing Example
  • API Reference
    • Widgets
      • Bark TTS
      • Champ
      • CoinGecko
      • ControlNet with Civitai
      • Crawler
      • Crypto News
      • Data Visualizer
      • Email Sender
      • Google Flight Search
      • Google Hotel Search
      • Google Image Search
      • Google Map Search
      • Google News Search
      • Google Scholar Search
      • Google Search
      • GroundedSAM
      • Image Text Fuser
      • Information Extractor - OpenAI Schema Generator
      • Information Extractor
      • Instagram Search
      • JSON to Table
      • LinkedIn
      • MS Word to Markdown
      • Markdown to MS Word
      • Markdown to PDF
      • Mindmap Generator
      • Notion Database
      • OCR
      • Pdf to Markdown
      • RMBG
      • Stabel-Video-Diffusion
      • Stable Diffusion Inpaint
      • Stable Diffusion Recommend
      • Stable Diffusion Transform
      • Stable Diffusion Upscale
      • Stable Diffusion with 6 fixed category
      • Stable Diffusion with Civitai
      • Storydiffusion
      • Suno Lyrics Generator
      • Suno Music Generator
      • Table to Markdown
      • TripAdvisor
      • Twitter Search
      • UDOP: Document Question Answering
      • Weather forecasting
      • Whisper large-v3
      • Wikipedia
      • Wolfram Alpha Search
      • Yelp Search
      • YouTube Downloader
      • YouTube Transcriber
      • Youtube Search
  • Tools
    • AutoConfig Bot
    • Cache Mode
Powered by GitBook
On this page
  • Try it in the Widget Center
  • Usage
  1. API Reference
  2. Widgets

GroundedSAM

GroundedSAM takes an input image and prompt to generate a language-guided mask.

PreviousGoogle SearchNextImage Text Fuser

Last updated 1 year ago

Try it in the Widget Center

Click this to try this widget and copy the Pro Config template.

Usage

<TODO: enter description here, and remove useless inputs>

Input Parameters

Name
Type
Description
Default
Required

image

string

HTTP url. Input image for Grounded SAM. We will create a mask for the image based on your text prompt.

mask_prompt

string

The text prompt for masking

negative_mask_prompt

string

The negative text prompt for masking (exclude something here)

adjustment_factor

integer

Mask Adjustment Factor

0

Output Parameters

Name
Type
Description
File Type

url_image

string

Annotated image with mask bbox and text. The image that was generated has been saved as an online URL. This link is temporary, so please save it for your own use

image

url_mask

string

The binary mask. The video that was generated has been saved as an online URL. This link is temporary, so please save it for your own use

image

Output Example

{ // input image = https://image.myshell.ai/image/chat/embed_obj/40295/20240423/1bfc157b73284d028e9217ce380c8363.png, mask_prompt = person, negative_mask_prompt = pants, adjustment_factor = 0
  "url_image": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/25431166f5d74e058832b0811c04806c.jpg",
  "url_mask": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/4dfc2764d4914460a2ffd8506b328b7d.jpg"
}
{
   "results": "<the example results of this widget>"
}
url