2390 lines
56 KiB
JSON
2390 lines
56 KiB
JSON
{
|
|
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
|
"raw_sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488",
|
|
"canonical_sha256": "0dbeb9e7b57b11a86af676bb0aa3e355ec46c885c26d6736e8219c73f7ba26fd",
|
|
"nodes": [
|
|
{
|
|
"id": 131,
|
|
"type": "JoinImageWithAlpha",
|
|
"pos": [
|
|
-660,
|
|
-2520
|
|
],
|
|
"size": [
|
|
230,
|
|
80
|
|
],
|
|
"flags": {},
|
|
"order": 8,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 309
|
|
},
|
|
{
|
|
"localized_name": "阿尔法",
|
|
"name": "alpha",
|
|
"type": "MASK",
|
|
"link": 310
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
312
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "JoinImageWithAlpha",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 132,
|
|
"type": "LoadVideo",
|
|
"pos": [
|
|
-1720,
|
|
-2670
|
|
],
|
|
"size": [
|
|
290,
|
|
400
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "文件",
|
|
"name": "file",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "file"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"localized_name": "选择要上传的文件",
|
|
"name": "upload",
|
|
"type": "IMAGEUPLOAD",
|
|
"widget": {
|
|
"name": "upload"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "视频",
|
|
"name": "VIDEO",
|
|
"type": "VIDEO",
|
|
"links": [
|
|
311,
|
|
317
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadVideo",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": [
|
|
"drinking_unicorn.mp4",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 133,
|
|
"type": "GetVideoComponents",
|
|
"pos": [
|
|
-660,
|
|
-2680
|
|
],
|
|
"size": [
|
|
230,
|
|
100
|
|
],
|
|
"flags": {},
|
|
"order": 5,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "视频",
|
|
"name": "video",
|
|
"type": "VIDEO",
|
|
"link": 311
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
309
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "音频",
|
|
"name": "audio",
|
|
"type": "AUDIO",
|
|
"links": [
|
|
313
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "帧率",
|
|
"name": "fps",
|
|
"type": "FLOAT",
|
|
"links": [
|
|
314
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "GetVideoComponents",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 134,
|
|
"type": "CreateVideo",
|
|
"pos": [
|
|
-360,
|
|
-2680
|
|
],
|
|
"size": [
|
|
270,
|
|
110
|
|
],
|
|
"flags": {},
|
|
"order": 12,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 312
|
|
},
|
|
{
|
|
"localized_name": "音频",
|
|
"name": "audio",
|
|
"shape": 7,
|
|
"type": "AUDIO",
|
|
"link": 313
|
|
},
|
|
{
|
|
"localized_name": "帧率",
|
|
"name": "fps",
|
|
"type": "FLOAT",
|
|
"widget": {
|
|
"name": "fps"
|
|
},
|
|
"link": 314
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "视频",
|
|
"name": "VIDEO",
|
|
"type": "VIDEO",
|
|
"links": [
|
|
315
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "CreateVideo",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {
|
|
"fps": true
|
|
},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": [
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"id": 135,
|
|
"type": "SaveVideo",
|
|
"pos": [
|
|
-50,
|
|
-2680
|
|
],
|
|
"size": [
|
|
270,
|
|
160
|
|
],
|
|
"flags": {},
|
|
"order": 14,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "视频",
|
|
"name": "video",
|
|
"type": "VIDEO",
|
|
"link": 315
|
|
},
|
|
{
|
|
"localized_name": "文件名前缀",
|
|
"name": "filename_prefix",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "filename_prefix"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"localized_name": "格式",
|
|
"name": "format",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "format"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"localized_name": "编码器",
|
|
"name": "codec",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "codec"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "SaveVideo",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": [
|
|
"video/ComfyUI",
|
|
"auto",
|
|
"auto"
|
|
]
|
|
},
|
|
{
|
|
"id": 137,
|
|
"type": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
|
"pos": [
|
|
-1390,
|
|
-2670
|
|
],
|
|
"size": [
|
|
300,
|
|
370
|
|
],
|
|
"flags": {},
|
|
"order": 6,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"name": "video",
|
|
"type": "VIDEO",
|
|
"link": 317
|
|
},
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "text"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "positive_coords",
|
|
"type": "STRING",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "negative_coords",
|
|
"type": "STRING",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"widget": {
|
|
"name": "threshold"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "refine_iterations"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"widget": {
|
|
"name": "individual_masks"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "ckpt_name"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "masks",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"links": [
|
|
310,
|
|
316
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"links": []
|
|
},
|
|
{
|
|
"name": "audio",
|
|
"type": "AUDIO",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "fps",
|
|
"type": "FLOAT",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"proxyWidgets": [
|
|
[
|
|
"100",
|
|
"text"
|
|
],
|
|
[
|
|
"101",
|
|
"threshold"
|
|
],
|
|
[
|
|
"101",
|
|
"refine_iterations"
|
|
],
|
|
[
|
|
"101",
|
|
"individual_masks"
|
|
],
|
|
[
|
|
"102",
|
|
"ckpt_name"
|
|
]
|
|
],
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 136,
|
|
"type": "MaskPreview",
|
|
"pos": [
|
|
-1030,
|
|
-2670
|
|
],
|
|
"size": [
|
|
320,
|
|
400
|
|
],
|
|
"flags": {},
|
|
"order": 9,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"link": 316
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "MaskPreview",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 112,
|
|
"type": "MarkdownNote",
|
|
"pos": [
|
|
-2390,
|
|
-3270
|
|
],
|
|
"size": [
|
|
520,
|
|
900
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": [
|
|
"Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links (for Local Users)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 checkpoints/\n│ └── sam3.1_multiplex_fp16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
|
|
],
|
|
"color": "#222",
|
|
"bgcolor": "#000"
|
|
},
|
|
{
|
|
"id": 113,
|
|
"type": "MarkdownNote",
|
|
"pos": [
|
|
-2270,
|
|
-2280
|
|
],
|
|
"size": [
|
|
300,
|
|
380
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"title": "Note: Prompt format",
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": [
|
|
"Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels\n\n```\neye:2, window panels:4\n```\n\n\n\n"
|
|
],
|
|
"color": "#222",
|
|
"bgcolor": "#000"
|
|
},
|
|
{
|
|
"id": 150,
|
|
"type": "Fast Groups Muter (rgthree)",
|
|
"pos": [
|
|
-1720,
|
|
-3460
|
|
],
|
|
"size": [
|
|
300,
|
|
100
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "OPT_CONNECTION",
|
|
"type": "*",
|
|
"links": null
|
|
}
|
|
],
|
|
"title": "开关",
|
|
"properties": {
|
|
"matchColors": "",
|
|
"matchTitle": "",
|
|
"showNav": true,
|
|
"showAllGraphs": true,
|
|
"sort": "position",
|
|
"customSortAlphabet": "",
|
|
"toggleRestriction": "default",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"input_ue_unconnectable": {},
|
|
"version": "7.8"
|
|
}
|
|
},
|
|
"color": "#322",
|
|
"bgcolor": "#533"
|
|
},
|
|
{
|
|
"id": 151,
|
|
"type": "PreviewImage",
|
|
"pos": [
|
|
-300,
|
|
-3220
|
|
],
|
|
"size": [
|
|
350,
|
|
390
|
|
],
|
|
"flags": {},
|
|
"order": 13,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 328
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "PreviewImage",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 153,
|
|
"type": "JoinImageWithAlpha",
|
|
"pos": [
|
|
-600,
|
|
-3220
|
|
],
|
|
"size": [
|
|
230,
|
|
80
|
|
],
|
|
"flags": {},
|
|
"order": 10,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 329
|
|
},
|
|
{
|
|
"localized_name": "阿尔法",
|
|
"name": "alpha",
|
|
"type": "MASK",
|
|
"link": 330
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
328
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "JoinImageWithAlpha",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 155,
|
|
"type": "MaskPreview",
|
|
"pos": [
|
|
-970,
|
|
-3220
|
|
],
|
|
"size": [
|
|
310,
|
|
390
|
|
],
|
|
"flags": {},
|
|
"order": 11,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"link": 332
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "MaskPreview",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 152,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
-1690,
|
|
-3220
|
|
],
|
|
"size": [
|
|
290,
|
|
390
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "image",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "image"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"localized_name": "选择文件上传",
|
|
"name": "upload",
|
|
"type": "IMAGEUPLOAD",
|
|
"widget": {
|
|
"name": "upload"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
329,
|
|
331
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "LoadImage",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": [
|
|
"微信图片_20260425191936_248_41.jpg",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 154,
|
|
"type": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
|
"pos": [
|
|
-1330,
|
|
-3220
|
|
],
|
|
"size": [
|
|
290,
|
|
370
|
|
],
|
|
"flags": {},
|
|
"order": 7,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"label": "image",
|
|
"localized_name": "image",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 331
|
|
},
|
|
{
|
|
"label": "object",
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "text"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "positive_coords",
|
|
"type": "STRING",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "negative_coords",
|
|
"type": "STRING",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"widget": {
|
|
"name": "threshold"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "refine_iterations"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"widget": {
|
|
"name": "individual_masks"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "ckpt_name"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "masks",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"links": [
|
|
330,
|
|
332
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"links": []
|
|
}
|
|
],
|
|
"properties": {
|
|
"proxyWidgets": [
|
|
[
|
|
"78",
|
|
"text"
|
|
],
|
|
[
|
|
"75",
|
|
"threshold"
|
|
],
|
|
[
|
|
"75",
|
|
"refine_iterations"
|
|
],
|
|
[
|
|
"75",
|
|
"individual_masks"
|
|
],
|
|
[
|
|
"77",
|
|
"ckpt_name"
|
|
]
|
|
],
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {
|
|
"text": true
|
|
},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": []
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
309,
|
|
133,
|
|
0,
|
|
131,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
310,
|
|
137,
|
|
0,
|
|
131,
|
|
1,
|
|
"MASK"
|
|
],
|
|
[
|
|
311,
|
|
132,
|
|
0,
|
|
133,
|
|
0,
|
|
"VIDEO"
|
|
],
|
|
[
|
|
312,
|
|
131,
|
|
0,
|
|
134,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
313,
|
|
133,
|
|
1,
|
|
134,
|
|
1,
|
|
"AUDIO"
|
|
],
|
|
[
|
|
314,
|
|
133,
|
|
2,
|
|
134,
|
|
2,
|
|
"FLOAT"
|
|
],
|
|
[
|
|
315,
|
|
134,
|
|
0,
|
|
135,
|
|
0,
|
|
"VIDEO"
|
|
],
|
|
[
|
|
316,
|
|
137,
|
|
0,
|
|
136,
|
|
0,
|
|
"MASK"
|
|
],
|
|
[
|
|
317,
|
|
132,
|
|
0,
|
|
137,
|
|
0,
|
|
"VIDEO"
|
|
],
|
|
[
|
|
328,
|
|
153,
|
|
0,
|
|
151,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
329,
|
|
152,
|
|
0,
|
|
153,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
330,
|
|
154,
|
|
0,
|
|
153,
|
|
1,
|
|
"MASK"
|
|
],
|
|
[
|
|
331,
|
|
152,
|
|
0,
|
|
154,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
332,
|
|
154,
|
|
0,
|
|
155,
|
|
0,
|
|
"MASK"
|
|
]
|
|
],
|
|
"extra": {
|
|
"frontendVersion": "1.42.15",
|
|
"VHS_latentpreview": false,
|
|
"VHS_latentpreviewrate": 0,
|
|
"VHS_MetadataImage": true,
|
|
"VHS_KeepIntermediate": true,
|
|
"ue_links": [],
|
|
"links_added_by_ue": []
|
|
},
|
|
"counts": {
|
|
"saved_fields": 18,
|
|
"source_nodes": 15,
|
|
"definition_nodes": 8,
|
|
"physical_edges": 14,
|
|
"definition_edges": 31,
|
|
"source_notes": 3,
|
|
"history_objects": 0,
|
|
"linked_saved_fields": 1,
|
|
"frontend_only": 2,
|
|
"final_scalars": 0,
|
|
"final_prompt_constructed": false
|
|
},
|
|
"missing_widgets": [
|
|
150
|
|
],
|
|
"definitions": {
|
|
"subgraphs": [
|
|
{
|
|
"id": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
|
"version": 1,
|
|
"state": {
|
|
"lastGroupId": 4,
|
|
"lastNodeId": 155,
|
|
"lastLinkId": 332,
|
|
"lastRerouteId": 0
|
|
},
|
|
"revision": 0,
|
|
"config": {},
|
|
"name": "Video Segment (SAM3)",
|
|
"inputNode": {
|
|
"id": -10,
|
|
"bounding": [
|
|
-2260,
|
|
-3450,
|
|
136.369140625,
|
|
220
|
|
]
|
|
},
|
|
"outputNode": {
|
|
"id": -20,
|
|
"bounding": [
|
|
-1050,
|
|
-3510,
|
|
120,
|
|
120
|
|
]
|
|
},
|
|
"inputs": [
|
|
{
|
|
"id": "680ffd88-32fe-48be-88d6-91ea44d5eaee",
|
|
"name": "video",
|
|
"type": "VIDEO",
|
|
"linkIds": [
|
|
252
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3430
|
|
]
|
|
},
|
|
{
|
|
"id": "ceaf249c-32d7-4624-8bf6-e590e347ed90",
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
254
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3410
|
|
]
|
|
},
|
|
{
|
|
"id": "1ffbff36-da0c-4854-8cb4-88ad31e64f99",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"linkIds": [
|
|
255
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3390
|
|
]
|
|
},
|
|
{
|
|
"id": "67b7f4c7-cec0-4e00-b154-23cc1abf880e",
|
|
"name": "positive_coords",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
256
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3370
|
|
]
|
|
},
|
|
{
|
|
"id": "b090a498-2bde-46b9-9554-18501401d687",
|
|
"name": "negative_coords",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
257
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3350
|
|
]
|
|
},
|
|
{
|
|
"id": "1a76dfcf-ce95-46af-bba5-c42160c683dd",
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"linkIds": [
|
|
261
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3330
|
|
]
|
|
},
|
|
{
|
|
"id": "999523fa-c476-4c53-80c3-0a2f554d18ab",
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"linkIds": [
|
|
262
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3310
|
|
]
|
|
},
|
|
{
|
|
"id": "d2371011-7fe5-4a39-b0c1-df2e0bbd6ece",
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"linkIds": [
|
|
263
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3290
|
|
]
|
|
},
|
|
{
|
|
"id": "675a8b37-17db-48d1-853c-2fe5d6a74582",
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"linkIds": [
|
|
273
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3270
|
|
]
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"linkIds": [
|
|
231
|
|
],
|
|
"localized_name": "masks",
|
|
"pos": [
|
|
-1030,
|
|
-3490
|
|
]
|
|
},
|
|
{
|
|
"id": "8f622e40-8528-4078-b7d3-147e9f872194",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"linkIds": [
|
|
232
|
|
],
|
|
"localized_name": "bboxes",
|
|
"pos": [
|
|
-1030,
|
|
-3470
|
|
]
|
|
},
|
|
{
|
|
"id": "6c9924ec-f0fa-4509-83ea-8f97f5889bcc",
|
|
"name": "audio",
|
|
"type": "AUDIO",
|
|
"linkIds": [
|
|
259
|
|
],
|
|
"pos": [
|
|
-1030,
|
|
-3450
|
|
]
|
|
},
|
|
{
|
|
"id": "82c1cddc-ab11-44eb-9e2f-1a5c7ea5645b",
|
|
"name": "fps",
|
|
"type": "FLOAT",
|
|
"linkIds": [
|
|
260
|
|
],
|
|
"pos": [
|
|
-1030,
|
|
-3430
|
|
]
|
|
}
|
|
],
|
|
"widgets": [],
|
|
"nodes": [
|
|
{
|
|
"id": 101,
|
|
"type": "SAM3_Detect",
|
|
"pos": [
|
|
-1520,
|
|
-3520
|
|
],
|
|
"size": [
|
|
270,
|
|
260
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"label": "model",
|
|
"localized_name": "model",
|
|
"name": "model",
|
|
"type": "MODEL",
|
|
"link": 237
|
|
},
|
|
{
|
|
"label": "image",
|
|
"localized_name": "image",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 253
|
|
},
|
|
{
|
|
"label": "conditioning",
|
|
"localized_name": "conditioning",
|
|
"name": "conditioning",
|
|
"shape": 7,
|
|
"type": "CONDITIONING",
|
|
"link": 200
|
|
},
|
|
{
|
|
"label": "bboxes",
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"shape": 7,
|
|
"type": "BOUNDING_BOX",
|
|
"link": 255
|
|
},
|
|
{
|
|
"label": "positive_coords",
|
|
"localized_name": "positive_coords",
|
|
"name": "positive_coords",
|
|
"shape": 7,
|
|
"type": "STRING",
|
|
"link": 256
|
|
},
|
|
{
|
|
"label": "negative_coords",
|
|
"localized_name": "negative_coords",
|
|
"name": "negative_coords",
|
|
"shape": 7,
|
|
"type": "STRING",
|
|
"link": 257
|
|
},
|
|
{
|
|
"localized_name": "threshold",
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"widget": {
|
|
"name": "threshold"
|
|
},
|
|
"link": 261
|
|
},
|
|
{
|
|
"localized_name": "refine_iterations",
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "refine_iterations"
|
|
},
|
|
"link": 262
|
|
},
|
|
{
|
|
"localized_name": "individual_masks",
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"widget": {
|
|
"name": "individual_masks"
|
|
},
|
|
"link": 263
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "masks",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"links": [
|
|
231
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"links": [
|
|
232
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "SAM3_Detect",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": [
|
|
0.5,
|
|
2,
|
|
false
|
|
]
|
|
},
|
|
{
|
|
"id": 102,
|
|
"type": "CheckpointLoaderSimple",
|
|
"pos": [
|
|
-1970,
|
|
-3310
|
|
],
|
|
"size": [
|
|
330,
|
|
140
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "Checkpoint名称",
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "ckpt_name"
|
|
},
|
|
"link": 273
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "模型",
|
|
"name": "MODEL",
|
|
"type": "MODEL",
|
|
"links": [
|
|
237
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "CLIP",
|
|
"name": "CLIP",
|
|
"type": "CLIP",
|
|
"links": [
|
|
240
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "VAE",
|
|
"name": "VAE",
|
|
"type": "VAE",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "CheckpointLoaderSimple",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"models": [
|
|
{
|
|
"name": "sam3.1_multiplex_fp16.safetensors",
|
|
"url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
|
|
"directory": "checkpoints"
|
|
}
|
|
]
|
|
},
|
|
"widgets_values": [
|
|
"sam3.1_multiplex.pt"
|
|
]
|
|
},
|
|
{
|
|
"id": 104,
|
|
"type": "GetVideoComponents",
|
|
"pos": [
|
|
-1910,
|
|
-3540
|
|
],
|
|
"size": [
|
|
230,
|
|
100
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "视频",
|
|
"name": "video",
|
|
"type": "VIDEO",
|
|
"link": 252
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
253
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "音频",
|
|
"name": "audio",
|
|
"type": "AUDIO",
|
|
"links": [
|
|
259
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "帧率",
|
|
"name": "fps",
|
|
"type": "FLOAT",
|
|
"links": [
|
|
260
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "GetVideoComponents",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 105,
|
|
"type": "Note",
|
|
"pos": [
|
|
-1980,
|
|
-2790
|
|
],
|
|
"size": [
|
|
370,
|
|
250
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 2,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"title": "Note: Prompt format",
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": [
|
|
"Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels"
|
|
],
|
|
"color": "#432",
|
|
"bgcolor": "#653"
|
|
},
|
|
{
|
|
"id": 100,
|
|
"type": "CLIPTextEncode",
|
|
"pos": [
|
|
-1980,
|
|
-3050
|
|
],
|
|
"size": [
|
|
400,
|
|
200
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 2,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "clip",
|
|
"name": "clip",
|
|
"type": "CLIP",
|
|
"link": 240
|
|
},
|
|
{
|
|
"localized_name": "文本",
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "text"
|
|
},
|
|
"link": 254
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "条件",
|
|
"name": "CONDITIONING",
|
|
"type": "CONDITIONING",
|
|
"links": [
|
|
200
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "CLIPTextEncode",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65
|
|
},
|
|
"widgets_values": [
|
|
"unicorn"
|
|
]
|
|
}
|
|
],
|
|
"groups": [],
|
|
"links": [
|
|
{
|
|
"id": 237,
|
|
"origin_id": 102,
|
|
"origin_slot": 0,
|
|
"target_id": 101,
|
|
"target_slot": 0,
|
|
"type": "MODEL"
|
|
},
|
|
{
|
|
"id": 200,
|
|
"origin_id": 100,
|
|
"origin_slot": 0,
|
|
"target_id": 101,
|
|
"target_slot": 2,
|
|
"type": "CONDITIONING"
|
|
},
|
|
{
|
|
"id": 240,
|
|
"origin_id": 102,
|
|
"origin_slot": 1,
|
|
"target_id": 100,
|
|
"target_slot": 0,
|
|
"type": "CLIP"
|
|
},
|
|
{
|
|
"id": 231,
|
|
"origin_id": 101,
|
|
"origin_slot": 0,
|
|
"target_id": -20,
|
|
"target_slot": 0,
|
|
"type": "MASK"
|
|
},
|
|
{
|
|
"id": 232,
|
|
"origin_id": 101,
|
|
"origin_slot": 1,
|
|
"target_id": -20,
|
|
"target_slot": 1,
|
|
"type": "BOUNDING_BOX"
|
|
},
|
|
{
|
|
"id": 252,
|
|
"origin_id": -10,
|
|
"origin_slot": 0,
|
|
"target_id": 104,
|
|
"target_slot": 0,
|
|
"type": "VIDEO"
|
|
},
|
|
{
|
|
"id": 253,
|
|
"origin_id": 104,
|
|
"origin_slot": 0,
|
|
"target_id": 101,
|
|
"target_slot": 1,
|
|
"type": "IMAGE"
|
|
},
|
|
{
|
|
"id": 254,
|
|
"origin_id": -10,
|
|
"origin_slot": 1,
|
|
"target_id": 100,
|
|
"target_slot": 1,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 255,
|
|
"origin_id": -10,
|
|
"origin_slot": 2,
|
|
"target_id": 101,
|
|
"target_slot": 3,
|
|
"type": "BOUNDING_BOX"
|
|
},
|
|
{
|
|
"id": 256,
|
|
"origin_id": -10,
|
|
"origin_slot": 3,
|
|
"target_id": 101,
|
|
"target_slot": 4,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 257,
|
|
"origin_id": -10,
|
|
"origin_slot": 4,
|
|
"target_id": 101,
|
|
"target_slot": 5,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 259,
|
|
"origin_id": 104,
|
|
"origin_slot": 1,
|
|
"target_id": -20,
|
|
"target_slot": 2,
|
|
"type": "AUDIO"
|
|
},
|
|
{
|
|
"id": 260,
|
|
"origin_id": 104,
|
|
"origin_slot": 2,
|
|
"target_id": -20,
|
|
"target_slot": 3,
|
|
"type": "FLOAT"
|
|
},
|
|
{
|
|
"id": 261,
|
|
"origin_id": -10,
|
|
"origin_slot": 5,
|
|
"target_id": 101,
|
|
"target_slot": 6,
|
|
"type": "FLOAT"
|
|
},
|
|
{
|
|
"id": 262,
|
|
"origin_id": -10,
|
|
"origin_slot": 6,
|
|
"target_id": 101,
|
|
"target_slot": 7,
|
|
"type": "INT"
|
|
},
|
|
{
|
|
"id": 263,
|
|
"origin_id": -10,
|
|
"origin_slot": 7,
|
|
"target_id": 101,
|
|
"target_slot": 8,
|
|
"type": "BOOLEAN"
|
|
},
|
|
{
|
|
"id": 273,
|
|
"origin_id": -10,
|
|
"origin_slot": 8,
|
|
"target_id": 102,
|
|
"target_slot": 0,
|
|
"type": "COMBO"
|
|
}
|
|
],
|
|
"extra": {
|
|
"ue_links": [],
|
|
"links_added_by_ue": []
|
|
}
|
|
},
|
|
{
|
|
"id": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
|
"version": 1,
|
|
"state": {
|
|
"lastGroupId": 4,
|
|
"lastNodeId": 155,
|
|
"lastLinkId": 332,
|
|
"lastRerouteId": 0
|
|
},
|
|
"revision": 0,
|
|
"config": {},
|
|
"name": "Image Segment (SAM3)",
|
|
"inputNode": {
|
|
"id": -10,
|
|
"bounding": [
|
|
-2260,
|
|
-3450,
|
|
136.369140625,
|
|
220
|
|
]
|
|
},
|
|
"outputNode": {
|
|
"id": -20,
|
|
"bounding": [
|
|
-1000,
|
|
-3460,
|
|
120,
|
|
80
|
|
]
|
|
},
|
|
"inputs": [
|
|
{
|
|
"id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"linkIds": [
|
|
264
|
|
],
|
|
"localized_name": "image",
|
|
"label": "image",
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3430
|
|
]
|
|
},
|
|
{
|
|
"id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745",
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
265
|
|
],
|
|
"label": "object",
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3410
|
|
]
|
|
},
|
|
{
|
|
"id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"linkIds": [
|
|
266
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3390
|
|
]
|
|
},
|
|
{
|
|
"id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899",
|
|
"name": "positive_coords",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
267
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3370
|
|
]
|
|
},
|
|
{
|
|
"id": "c65f8b87-9bd7-48be-9fc2-823431e95019",
|
|
"name": "negative_coords",
|
|
"type": "STRING",
|
|
"linkIds": [
|
|
268
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3350
|
|
]
|
|
},
|
|
{
|
|
"id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb",
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"linkIds": [
|
|
269
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3330
|
|
]
|
|
},
|
|
{
|
|
"id": "b1439668-b050-490b-a5dc-fc4052c55666",
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"linkIds": [
|
|
270
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3310
|
|
]
|
|
},
|
|
{
|
|
"id": "86e239e5-c098-4302-b54d-d42a38bc0f89",
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"linkIds": [
|
|
271
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3290
|
|
]
|
|
},
|
|
{
|
|
"id": "f9e0b9d4-b2f1-4907-a4a5-305656576706",
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"linkIds": [
|
|
272
|
|
],
|
|
"pos": [
|
|
-2143.630859375,
|
|
-3270
|
|
]
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"linkIds": [
|
|
231
|
|
],
|
|
"localized_name": "masks",
|
|
"pos": [
|
|
-980,
|
|
-3440
|
|
]
|
|
},
|
|
{
|
|
"id": "8f622e40-8528-4078-b7d3-147e9f872194",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"linkIds": [
|
|
232
|
|
],
|
|
"localized_name": "bboxes",
|
|
"pos": [
|
|
-980,
|
|
-3420
|
|
]
|
|
}
|
|
],
|
|
"widgets": [],
|
|
"nodes": [
|
|
{
|
|
"id": 78,
|
|
"type": "CLIPTextEncode",
|
|
"pos": [
|
|
-1990,
|
|
-3010
|
|
],
|
|
"size": [
|
|
400,
|
|
200
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "clip",
|
|
"name": "clip",
|
|
"type": "CLIP",
|
|
"link": 240
|
|
},
|
|
{
|
|
"localized_name": "文本",
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "text"
|
|
},
|
|
"link": 265
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "条件",
|
|
"name": "CONDITIONING",
|
|
"type": "CONDITIONING",
|
|
"links": [
|
|
200
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "CLIPTextEncode",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": [
|
|
"clothes"
|
|
]
|
|
},
|
|
{
|
|
"id": 75,
|
|
"type": "SAM3_Detect",
|
|
"pos": [
|
|
-1470,
|
|
-3460
|
|
],
|
|
"size": [
|
|
270,
|
|
260
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"label": "model",
|
|
"localized_name": "model",
|
|
"name": "model",
|
|
"type": "MODEL",
|
|
"link": 237
|
|
},
|
|
{
|
|
"label": "image",
|
|
"localized_name": "image",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 264
|
|
},
|
|
{
|
|
"label": "conditioning",
|
|
"localized_name": "conditioning",
|
|
"name": "conditioning",
|
|
"shape": 7,
|
|
"type": "CONDITIONING",
|
|
"link": 200
|
|
},
|
|
{
|
|
"label": "bboxes",
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"shape": 7,
|
|
"type": "BOUNDING_BOX",
|
|
"link": 266
|
|
},
|
|
{
|
|
"label": "positive_coords",
|
|
"localized_name": "positive_coords",
|
|
"name": "positive_coords",
|
|
"shape": 7,
|
|
"type": "STRING",
|
|
"link": 267
|
|
},
|
|
{
|
|
"label": "negative_coords",
|
|
"localized_name": "negative_coords",
|
|
"name": "negative_coords",
|
|
"shape": 7,
|
|
"type": "STRING",
|
|
"link": 268
|
|
},
|
|
{
|
|
"localized_name": "threshold",
|
|
"name": "threshold",
|
|
"type": "FLOAT",
|
|
"widget": {
|
|
"name": "threshold"
|
|
},
|
|
"link": 269
|
|
},
|
|
{
|
|
"localized_name": "refine_iterations",
|
|
"name": "refine_iterations",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "refine_iterations"
|
|
},
|
|
"link": 270
|
|
},
|
|
{
|
|
"localized_name": "individual_masks",
|
|
"name": "individual_masks",
|
|
"type": "BOOLEAN",
|
|
"widget": {
|
|
"name": "individual_masks"
|
|
},
|
|
"link": 271
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "masks",
|
|
"name": "masks",
|
|
"type": "MASK",
|
|
"links": [
|
|
231
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "bboxes",
|
|
"name": "bboxes",
|
|
"type": "BOUNDING_BOX",
|
|
"links": [
|
|
232
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "SAM3_Detect",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3"
|
|
},
|
|
"widgets_values": [
|
|
0.5,
|
|
2,
|
|
false
|
|
]
|
|
},
|
|
{
|
|
"id": 77,
|
|
"type": "CheckpointLoaderSimple",
|
|
"pos": [
|
|
-1970,
|
|
-3200
|
|
],
|
|
"size": [
|
|
330,
|
|
140
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "Checkpoint名称",
|
|
"name": "ckpt_name",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "ckpt_name"
|
|
},
|
|
"link": 272
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "模型",
|
|
"name": "MODEL",
|
|
"type": "MODEL",
|
|
"links": [
|
|
237
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "CLIP",
|
|
"name": "CLIP",
|
|
"type": "CLIP",
|
|
"links": [
|
|
240
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "VAE",
|
|
"name": "VAE",
|
|
"type": "VAE",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"Node name for S&R": "CheckpointLoaderSimple",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"models": [
|
|
{
|
|
"name": "sam3.1_multiplex_fp16.safetensors",
|
|
"url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
|
|
"directory": "checkpoints"
|
|
}
|
|
]
|
|
},
|
|
"widgets_values": [
|
|
"sam3.1_multiplex.pt"
|
|
]
|
|
}
|
|
],
|
|
"groups": [],
|
|
"links": [
|
|
{
|
|
"id": 237,
|
|
"origin_id": 77,
|
|
"origin_slot": 0,
|
|
"target_id": 75,
|
|
"target_slot": 0,
|
|
"type": "MODEL"
|
|
},
|
|
{
|
|
"id": 200,
|
|
"origin_id": 78,
|
|
"origin_slot": 0,
|
|
"target_id": 75,
|
|
"target_slot": 2,
|
|
"type": "CONDITIONING"
|
|
},
|
|
{
|
|
"id": 240,
|
|
"origin_id": 77,
|
|
"origin_slot": 1,
|
|
"target_id": 78,
|
|
"target_slot": 0,
|
|
"type": "CLIP"
|
|
},
|
|
{
|
|
"id": 231,
|
|
"origin_id": 75,
|
|
"origin_slot": 0,
|
|
"target_id": -20,
|
|
"target_slot": 0,
|
|
"type": "MASK"
|
|
},
|
|
{
|
|
"id": 232,
|
|
"origin_id": 75,
|
|
"origin_slot": 1,
|
|
"target_id": -20,
|
|
"target_slot": 1,
|
|
"type": "BOUNDING_BOX"
|
|
},
|
|
{
|
|
"id": 264,
|
|
"origin_id": -10,
|
|
"origin_slot": 0,
|
|
"target_id": 75,
|
|
"target_slot": 1,
|
|
"type": "IMAGE"
|
|
},
|
|
{
|
|
"id": 265,
|
|
"origin_id": -10,
|
|
"origin_slot": 1,
|
|
"target_id": 78,
|
|
"target_slot": 1,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 266,
|
|
"origin_id": -10,
|
|
"origin_slot": 2,
|
|
"target_id": 75,
|
|
"target_slot": 3,
|
|
"type": "BOUNDING_BOX"
|
|
},
|
|
{
|
|
"id": 267,
|
|
"origin_id": -10,
|
|
"origin_slot": 3,
|
|
"target_id": 75,
|
|
"target_slot": 4,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 268,
|
|
"origin_id": -10,
|
|
"origin_slot": 4,
|
|
"target_id": 75,
|
|
"target_slot": 5,
|
|
"type": "STRING"
|
|
},
|
|
{
|
|
"id": 269,
|
|
"origin_id": -10,
|
|
"origin_slot": 5,
|
|
"target_id": 75,
|
|
"target_slot": 6,
|
|
"type": "FLOAT"
|
|
},
|
|
{
|
|
"id": 270,
|
|
"origin_id": -10,
|
|
"origin_slot": 6,
|
|
"target_id": 75,
|
|
"target_slot": 7,
|
|
"type": "INT"
|
|
},
|
|
{
|
|
"id": 271,
|
|
"origin_id": -10,
|
|
"origin_slot": 7,
|
|
"target_id": 75,
|
|
"target_slot": 8,
|
|
"type": "BOOLEAN"
|
|
},
|
|
{
|
|
"id": 272,
|
|
"origin_id": -10,
|
|
"origin_slot": 8,
|
|
"target_id": 77,
|
|
"target_slot": 0,
|
|
"type": "COMBO"
|
|
}
|
|
],
|
|
"extra": {
|
|
"ue_links": [],
|
|
"links_added_by_ue": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|