167 lines
4.3 KiB
JSON
167 lines
4.3 KiB
JSON
{
|
|
"last_node_id": 4,
|
|
"last_link_id": 3,
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"type": "LoadImage",
|
|
"pos": [100, 100],
|
|
"size": {
|
|
"0": 315,
|
|
"1": 314
|
|
},
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [1],
|
|
"shape": 3,
|
|
"slot_index": 0
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null,
|
|
"shape": 3
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage"
|
|
},
|
|
"widgets_values": ["example.png", "image"],
|
|
"color": "#232",
|
|
"bgcolor": "#353",
|
|
"title": "Load Image"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "Sa2VANodeTpl",
|
|
"pos": [500, 100],
|
|
"size": {
|
|
"0": 400,
|
|
"1": 220
|
|
},
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 1
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "text_outputs",
|
|
"type": "LIST",
|
|
"links": [],
|
|
"shape": 3,
|
|
"slot_index": 0
|
|
},
|
|
{
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"links": [],
|
|
"shape": 3,
|
|
"slot_index": 1
|
|
},
|
|
{
|
|
"name": "mask_images",
|
|
"type": "IMAGE",
|
|
"links": [2, 3],
|
|
"shape": 3,
|
|
"slot_index": 2
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "Sa2VANodeTpl"
|
|
},
|
|
"widgets_values": [
|
|
"ByteDance/Sa2VA-Qwen3-VL-4B",
|
|
0.5,
|
|
"Please provide segmentation masks for all objects in this image.",
|
|
false,
|
|
true
|
|
],
|
|
"color": "#432",
|
|
"bgcolor": "#653",
|
|
"title": "Sa2VA Segmentation"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "PreviewImage",
|
|
"pos": [950, 100],
|
|
"size": {
|
|
"0": 250,
|
|
"1": 200
|
|
},
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 2
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "PreviewImage"
|
|
},
|
|
"color": "#322",
|
|
"bgcolor": "#533",
|
|
"title": "Mask Preview"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "SaveImage",
|
|
"pos": [950, 350],
|
|
"size": {
|
|
"0": 250,
|
|
"1": 200
|
|
},
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 3
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "SaveImage"
|
|
},
|
|
"widgets_values": ["sa2va_masks"],
|
|
"color": "#223",
|
|
"bgcolor": "#335",
|
|
"title": "Save Masks"
|
|
}
|
|
],
|
|
"links": [
|
|
[1, 1, 0, 2, 0, "IMAGE"],
|
|
[2, 2, 2, 3, 0, "IMAGE"],
|
|
[3, 2, 2, 4, 0, "IMAGE"]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.9,
|
|
"offset": [50, 50]
|
|
},
|
|
"workflow_info": {
|
|
"name": "Sa2VA Basic Segmentation",
|
|
"description": "Minimal workflow for Sa2VA combined node: Load → Sa2VA → Preview/Save",
|
|
"version": "1.1",
|
|
"author": "ComfyUI-Sa2VA"
|
|
}
|
|
},
|
|
"version": 0.4
|
|
}
|