Files
ltdrdata-ComfyUI-Impact-Pack/misc/sam.json
T
Dr.Lt.Data cc5cf656e8 nodes improvements
* Detailer: guide_size_for parameter added
* Onnx detector: crop_factor parameter added
2023-04-14 01:19:51 +09:00

1150 lines
18 KiB
JSON

{
"last_node_id": 32,
"last_link_id": 57,
"nodes": [
{
"id": 7,
"type": "PreviewImage",
"pos": [
921,
431
],
"size": {
"0": 140,
"1": 230
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 7
}
],
"title": "Masked",
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 10,
"type": "SAMLoader",
"pos": [
135,
335
],
"size": {
"0": 249,
"1": 60
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "SAM_MODEL",
"type": "SAM_MODEL",
"links": [
10
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SAMLoader"
},
"widgets_values": [
"sam_vit_b_01ec64.pth"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 18,
"type": "CheckpointLoaderSimple",
"pos": [
136,
180
],
"size": {
"0": 248,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
22
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
24,
25
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
45,
46,
47,
48,
49
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"V07_v07.safetensors"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 25,
"type": "PreviewImage",
"pos": [
1097,
365
],
"size": {
"0": 211,
"1": 294
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 44
}
],
"title": "Refined Masked",
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 27,
"type": "VAEEncodeForInpaint",
"pos": [
1332,
515
],
"size": {
"0": 226.8000030517578,
"1": 66
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 52
},
{
"name": "vae",
"type": "VAE",
"link": 45
},
{
"name": "mask",
"type": "MASK",
"link": 56
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
42
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 13,
"type": "MaskToSEGS",
"pos": [
1096,
245
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 57
}
],
"outputs": [
{
"name": "SEGS",
"type": "SEGS",
"links": [
12,
18
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToSEGS"
},
"widgets_values": [
"True",
3
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 2,
"type": "LoadImage",
"pos": [
401,
177
],
"size": {
"0": 254,
"1": 480
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1,
2,
38,
50,
51,
52
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
8
],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"alpha3.png",
"image"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 4,
"type": "VAEEncodeForInpaint",
"pos": [
677,
438
],
"size": {
"0": 226.8000030517578,
"1": 66
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 2
},
{
"name": "vae",
"type": "VAE",
"link": 47
},
{
"name": "mask",
"type": "MASK",
"link": 9
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
5
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 6,
"type": "VAEDecode",
"pos": [
677,
602
],
"size": {
"0": 228,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 5
},
{
"name": "vae",
"type": "VAE",
"link": 48
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 3,
"type": "PreviewImage",
"pos": [
919,
176
],
"size": {
"0": 140,
"1": 213
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 1
}
],
"title": "No Alpha",
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 30,
"type": "VAEDecode",
"pos": [
1333,
615
],
"size": {
"0": 227.90530395507812,
"1": 46
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 42
},
{
"name": "vae",
"type": "VAE",
"link": 46
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
44
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 28,
"type": "SegsMaskCombine",
"pos": [
1333,
435
],
"size": {
"0": 225.70559692382812,
"1": 46
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "segs",
"type": "SEGS",
"link": 39
},
{
"name": "image",
"type": "IMAGE",
"link": 38
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
56
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SegsMaskCombine"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 16,
"type": "Segs & Mask",
"pos": [
1331,
356
],
"size": {
"0": 226.6055908203125,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "segs",
"type": "SEGS",
"link": 18
},
{
"name": "mask",
"type": "MASK",
"link": 19
}
],
"outputs": [
{
"name": "SEGS",
"type": "SEGS",
"links": [
20,
39
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Segs & Mask"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 9,
"type": "SAMDetectorCombined",
"pos": [
1332,
165
],
"size": {
"0": 225.6055908203125,
"1": 150.59918212890625
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "sam_model",
"type": "SAM_MODEL",
"link": 10
},
{
"name": "segs",
"type": "SEGS",
"link": 12
},
{
"name": "image",
"type": "IMAGE",
"link": 51
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
19
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SAMDetectorCombined"
},
"widgets_values": [
"none",
0.93,
0.93
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 8,
"type": "ToBinaryMask",
"pos": [
1093,
171
],
"size": {
"0": 214.5975799560547,
"1": 26
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 8
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
9,
57
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ToBinaryMask"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 20,
"type": "CLIPTextEncode",
"pos": [
134,
736
],
"size": {
"0": 239.99998474121094,
"1": 192.00001525878906
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 24
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
27
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"1girl, (silver:1.4) short pants"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 21,
"type": "PreviewImage",
"pos": [
729,
741
],
"size": {
"0": 166.99998474121094,
"1": 174.00001525878906
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29
}
],
"title": "Cropped",
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#223",
"bgcolor": "#335"
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
729,
959
],
"size": {
"0": 164.99998474121094,
"1": 197.00001525878906
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 30
}
],
"title": "Refined Crop",
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#223",
"bgcolor": "#335"
},
{
"id": 23,
"type": "SaveImage",
"pos": [
911,
740
],
"size": {
"0": 289,
"1": 415
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 28
}
],
"title": "Result",
"properties": {},
"widgets_values": [
"ComfyUI"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 19,
"type": "CLIPTextEncode",
"pos": [
135,
971
],
"size": {
"0": 234.99998474121094,
"1": 185.00001525878906
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 25
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
26
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"jeans, ((black)), ((blue))"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 17,
"type": "DetailerForEachDebug",
"pos": [
402,
739
],
"size": {
"0": 315,
"1": 418
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 50
},
{
"name": "segs",
"type": "SEGS",
"link": 20
},
{
"name": "model",
"type": "MODEL",
"link": 22
},
{
"name": "vae",
"type": "VAE",
"link": 49
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 27
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 26
},
{
"name": "external_seed",
"type": "SEED",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"slot_index": 0
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
29
],
"slot_index": 1
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
30
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "DetailerForEachDebug"
},
"widgets_values": [
192,
"bbox",
991944171351598,
"randomize",
20,
10,
"euler",
"karras",
0.6,
3,
"enabled"
],
"color": "#223",
"bgcolor": "#335"
}
],
"links": [
[
1,
2,
0,
3,
0,
"IMAGE"
],
[
2,
2,
0,
4,
0,
"IMAGE"
],
[
5,
4,
0,
6,
0,
"LATENT"
],
[
7,
6,
0,
7,
0,
"IMAGE"
],
[
8,
2,
1,
8,
0,
"MASK"
],
[
9,
8,
0,
4,
2,
"MASK"
],
[
10,
10,
0,
9,
0,
"SAM_MODEL"
],
[
12,
13,
0,
9,
1,
"SEGS"
],
[
18,
13,
0,
16,
0,
"SEGS"
],
[
19,
9,
0,
16,
1,
"MASK"
],
[
20,
16,
0,
17,
1,
"SEGS"
],
[
22,
18,
0,
17,
2,
"MODEL"
],
[
24,
18,
1,
20,
0,
"CLIP"
],
[
25,
18,
1,
19,
0,
"CLIP"
],
[
26,
19,
0,
17,
5,
"CONDITIONING"
],
[
27,
20,
0,
17,
4,
"CONDITIONING"
],
[
28,
17,
0,
23,
0,
"IMAGE"
],
[
29,
17,
1,
21,
0,
"IMAGE"
],
[
30,
17,
2,
22,
0,
"IMAGE"
],
[
38,
2,
0,
28,
1,
"IMAGE"
],
[
39,
16,
0,
28,
0,
"SEGS"
],
[
42,
27,
0,
30,
0,
"LATENT"
],
[
44,
30,
0,
25,
0,
"IMAGE"
],
[
45,
18,
2,
27,
1,
"VAE"
],
[
46,
18,
2,
30,
1,
"VAE"
],
[
47,
18,
2,
4,
1,
"VAE"
],
[
48,
18,
2,
6,
1,
"VAE"
],
[
49,
18,
2,
17,
3,
"VAE"
],
[
50,
2,
0,
17,
0,
"IMAGE"
],
[
51,
2,
0,
9,
2,
"IMAGE"
],
[
52,
2,
0,
27,
0,
"IMAGE"
],
[
56,
28,
0,
27,
2,
"MASK"
],
[
57,
8,
0,
13,
0,
"MASK"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}