workflow / Inpainting-mask_upload-1.5.json
phamhungd's picture
Upload 24 files
574c311 verified
{
"last_node_id": 20,
"last_link_id": 34,
"nodes": [
{
"id": 10,
"type": "CLIPSetLastLayer",
"pos": [
20,
160
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 10,
"slot_index": 0
}
],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
11
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPSetLastLayer"
},
"widgets_values": [
-2
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
369,
369
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
27
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark, low quality, 3d, 2d"
]
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1770,
160
],
"size": {
"0": 266.59197998046875,
"1": 456.1173095703125
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1530,
160
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 3,
"type": "KSampler",
"pos": [
1170,
160
],
"size": {
"0": 328.98828125,
"1": 474
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 25
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 22
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 23
},
{
"name": "latent_image",
"type": "LATENT",
"link": 24
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
341078386957386,
"randomize",
20,
8,
"euler_ancestral",
"normal",
1
]
},
{
"id": 17,
"type": "InpaintModelConditioning",
"pos": [
878,
171
],
"size": {
"0": 216.59999084472656,
"1": 106
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 26,
"slot_index": 0
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 27,
"slot_index": 1
},
{
"name": "vae",
"type": "VAE",
"link": 28,
"slot_index": 2
},
{
"name": "pixels",
"type": "IMAGE",
"link": 34,
"slot_index": 3
},
{
"name": "mask",
"type": "MASK",
"link": 31,
"slot_index": 4
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
22
],
"shape": 3,
"slot_index": 0
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
23
],
"shape": 3,
"slot_index": 1
},
{
"name": "latent",
"type": "LATENT",
"links": [
24
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "InpaintModelConditioning"
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
370,
160
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 11
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
26
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"1men, (realistic, best quality, raw photo, film gain:1.1), portrait, in the city, summer day"
]
},
{
"id": 11,
"type": "LoadImage",
"pos": [
-291,
662
],
"size": {
"0": 315.01214599609375,
"1": 345.4975280761719
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
33
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"image.jpg",
"image"
]
},
{
"id": 19,
"type": "ConstrainImage|pysssss",
"pos": [
47,
670
],
"size": {
"0": 315,
"1": 154
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 33
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
34
],
"shape": 6,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ConstrainImage|pysssss"
},
"widgets_values": [
1024,
1024,
0,
0,
"no"
]
},
{
"id": 18,
"type": "LoadImageMask",
"pos": [
393,
670
],
"size": {
"0": 326.0937194824219,
"1": 333.3841247558594
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
31
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LoadImageMask"
},
"widgets_values": [
"mask.jpg",
"red",
"image"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-327,
161
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
25
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
5,
10
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8,
28
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"Realistic-Vision-v51.inpainting.safetensors"
]
},
{
"id": 20,
"type": "Note",
"pos": [
-327,
318
],
"size": {
"0": 310.9923400878906,
"1": 167.09852600097656
},
"flags": {},
"order": 3,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"#Workflow hỗ trợ inpaint với model inpaint 1.5\n\nComfyUI Colab:\n- Creator: stablediffusion.vn\n- Website: sdvn.me | comfy.vn | fluxai.vn\n- Document: bit.ly/sdvn-lib\n- Skills training: hungdiffusion.com"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
5,
4,
1,
7,
0,
"CLIP"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
10,
4,
1,
10,
0,
"CLIP"
],
[
11,
10,
0,
6,
0,
"CLIP"
],
[
22,
17,
0,
3,
1,
"CONDITIONING"
],
[
23,
17,
1,
3,
2,
"CONDITIONING"
],
[
24,
17,
2,
3,
3,
"LATENT"
],
[
25,
4,
0,
3,
0,
"MODEL"
],
[
26,
6,
0,
17,
0,
"CONDITIONING"
],
[
27,
7,
0,
17,
1,
"CONDITIONING"
],
[
28,
4,
2,
17,
2,
"VAE"
],
[
31,
18,
0,
17,
4,
"MASK"
],
[
33,
11,
0,
19,
0,
"IMAGE"
],
[
34,
19,
0,
17,
3,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7627768444385489,
"offset": [
451.30181028257863,
-60.50605323530969
]
}
},
"version": 0.4
}