Files
PozzettiAndrea-ComfyUI-SAM3/workflows/video_tracking.json
T
2026-02-10 02:44:49 +01:00

227 lines
4.4 KiB
JSON

{
"last_node_id": 8,
"last_link_id": 12,
"nodes": [
{
"id": 1,
"type": "SAM3VideoModelLoader",
"pos": [100, 100],
"size": [400, 200],
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "video_model",
"type": "SAM3_VIDEO_MODEL",
"links": [1]
}
],
"properties": {},
"widgets_values": [
"",
"",
"",
false,
"0"
],
"title": "SAM3 Load Video Model"
},
{
"id": 2,
"type": "VHS_LoadVideo",
"pos": [100, 350],
"size": [300, 150],
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [2]
}
],
"properties": {},
"widgets_values": [],
"title": "Load Video (VHS)"
},
{
"id": 3,
"type": "SAM3InitVideoSession",
"pos": [550, 100],
"size": [350, 150],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "video_model",
"type": "SAM3_VIDEO_MODEL",
"link": 1
},
{
"name": "video_frames",
"type": "IMAGE",
"link": 2
}
],
"outputs": [
{
"name": "session",
"type": "SAM3_VIDEO_SESSION",
"links": [3, 4]
},
{
"name": "session_id",
"type": "STRING",
"links": []
}
],
"properties": {},
"widgets_values": [""],
"title": "SAM3 Init Video Session"
},
{
"id": 4,
"type": "SAM3AddVideoPrompt",
"pos": [950, 100],
"size": [400, 250],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "session",
"type": "SAM3_VIDEO_SESSION",
"link": 3
}
],
"outputs": [
{
"name": "session",
"type": "SAM3_VIDEO_SESSION",
"links": [5]
}
],
"properties": {},
"widgets_values": [
0,
"person",
1
],
"title": "SAM3 Add Video Prompt"
},
{
"id": 5,
"type": "SAM3PropagateVideo",
"pos": [1400, 100],
"size": [350, 200],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "session",
"type": "SAM3_VIDEO_SESSION",
"link": 5
}
],
"outputs": [
{
"name": "video_masks",
"type": "SAM3_VIDEO_MASKS",
"links": [6]
}
],
"properties": {},
"widgets_values": [
"both",
0,
-1
],
"title": "SAM3 Propagate Video"
},
{
"id": 6,
"type": "SAM3VideoOutput",
"pos": [1800, 100],
"size": [300, 150],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "video_masks",
"type": "SAM3_VIDEO_MASKS",
"link": 6
}
],
"outputs": [
{
"name": "masks",
"type": "MASK",
"links": [7]
}
],
"properties": {},
"widgets_values": [-1],
"title": "SAM3 Video Output"
},
{
"id": 7,
"type": "PreviewImage",
"pos": [2150, 100],
"size": [300, 300],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "MASK",
"link": 7
}
],
"properties": {},
"title": "Preview Masks"
},
{
"id": 8,
"type": "SAM3CloseVideoSession",
"pos": [950, 400],
"size": [300, 100],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "session",
"type": "SAM3_VIDEO_SESSION",
"link": 4
}
],
"properties": {},
"title": "SAM3 Close Video Session"
}
],
"links": [
[1, 1, 0, 3, 0, "SAM3_VIDEO_MODEL"],
[2, 2, 0, 3, 1, "IMAGE"],
[3, 3, 0, 4, 0, "SAM3_VIDEO_SESSION"],
[4, 3, 0, 8, 0, "SAM3_VIDEO_SESSION"],
[5, 4, 0, 5, 0, "SAM3_VIDEO_SESSION"],
[6, 5, 0, 6, 0, "SAM3_VIDEO_MASKS"],
[7, 6, 0, 7, 0, "MASK"]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [0, 0]
}
},
"version": 0.4
}