-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsegment.json
More file actions
38 lines (38 loc) · 1.09 KB
/
Copy pathsegment.json
File metadata and controls
38 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"id": "Segment",
"description": "Segments input images into labeled region masks.",
"variables": {
"image_url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/grounding_dino_example_input.png",
"prompt": "cat"
},
"steps": [
{
"name": "load_image",
"task": {
"command": "gather_images",
"arguments": {
"urls": ["variable:image_url"]
}
},
"result": {
"content_type": "image/png",
"embed_metadata": true,
"save": false
}
},
{
"name": "segment",
"task": {
"command": "segment",
"arguments": {
"image": "previous_result:load_image",
"prompt": "variable:prompt"
}
},
"result": {
"content_type": "image/png",
"embed_metadata": true
}
}
]
}