Files
pschroedl-ComfyUI-SAM2-Real…/examples/SAM2-Realtime-Example.json
T

56 lines
1014 B
JSON

{
"1": {
"inputs": {
"image": "example.png",
"upload": "image"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"2": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"7": {
"inputs": {
"model": "sam2_hiera_tiny.pt",
"segmentor": "realtime",
"device": "cuda",
"precision": "fp16"
},
"class_type": "DownloadAndLoadSAM2RealtimeModel",
"_meta": {
"title": "(Down)Load SAM2-Realtime Model"
}
},
"8": {
"inputs": {
"keep_model_loaded": true,
"coordinates_positive": "[384, 384]",
"individual_objects": false,
"images": [
"1",
0
],
"sam2_model": [
"7",
0
]
},
"class_type": "Sam2RealtimeSegmentation",
"_meta": {
"title": "Sam2RealtimeSegmentation"
}
}
}