comfy-anything / workflows /sdxl-depthanything-rembg.json
martintomov's picture
workflows
6286aa4 verified
{
"last_node_id": 36,
"last_link_id": 26,
"nodes": [
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
100,
130
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
7
],
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
20,
22
],
"shape": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
24
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"juggernautXL_v8Rundiffusion.safetensors"
]
},
{
"id": 9,
"type": "SaveImage",
"pos": [
2987.4000244140625,
130
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 1
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 12,
"type": "LoadImage",
"pos": [
100,
358
],
"size": [
315,
314
],
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
2
],
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"https://cdn-lfs-us-1.huggingface.co/repos/f9/7c/f97c760f7431864213fca13d6afd129e2f883312e9f6449c2dab0430986a22f5/cd51987469bdcd3c077f3457af610ed2fc8b5599a4390355f82da6c3d25fce4f?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27IMG_3466.JPG%3B+filename%3D%22IMG_3466.JPG%22%3B&response-content-type=image%2Fjpeg&Expires=1718735140&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxODczNTE0MH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmh1Z2dpbmdmYWNlLmNvL3JlcG9zL2Y5LzdjL2Y5N2M3NjBmNzQzMTg2NDIxM2ZjYTEzZDZhZmQxMjllMmY4ODMzMTJlOWY2NDQ5YzJkYWIwNDMwOTg2YTIyZjUvY2Q1MTk4NzQ2OWJkY2QzYzA3N2YzNDU3YWY2MTBlZDJmYzhiNTU5OWE0MzkwMzU1ZjgyZGE2YzNkMjVmY2U0Zj9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPSoifV19&Signature=IC9efMUCqy4E10orQms4DAnjAkYzuDHzwENrldBmZdcB9aFk7gvALF3tBqb80PMFAzHp0t0pLg-yy3RS0DQvRegEaOmzAS9di1TKjrAYtCJBPdmfdNNDf9k17aL1VVfw5KZCFjqLGVV6aaTufyEqLBx5JMPaE2fBjiUPATuPv7%7ETvCh5bjMPlJ2CgK3sF97uyCaguzR8VNcbJ5PC0yO%7EFPJzoFKKz-XWibDdO1%7EfxaCU8RJs1AyUSxv19WOrijFBZFYWtj1nErc17n1p4VQdWAs4K8kZ1jKXQmpTJSipePC1js8lJTu9qLadcg0HvgDtmkhp1jwTu2-z58GFVrq2-g__&Key-Pair-Id=K2FPYV99P2N66Q",
"image"
]
},
{
"id": 13,
"type": "ImageResize+",
"pos": [
515,
338
],
"size": {
"0": 315,
"1": 194
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 2
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3,
10,
26
],
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResize+"
},
"widgets_values": [
1024,
1024,
"nearest",
false,
"always"
]
},
{
"id": 14,
"type": "DepthAnythingPreprocessor",
"pos": [
1015,
130
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 3
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
6
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "DepthAnythingPreprocessor"
},
"widgets_values": [
"depth_anything_vitl14.pth",
512
]
},
{
"id": 15,
"type": "ControlNetApply",
"pos": [
1430,
130
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 4
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 5
},
{
"name": "image",
"type": "IMAGE",
"link": 6
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
12
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
1
]
},
{
"id": 16,
"type": "ControlNetLoader",
"pos": [
100,
590
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
5
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"control-lora-depth-rank128.safetensors"
]
},
{
"id": 17,
"type": "IPAdapterUnifiedLoader",
"pos": [
515,
130
],
"size": {
"0": 315,
"1": 78
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 7
},
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": null
}
],
"outputs": [
{
"name": "model",
"type": "MODEL",
"links": [
8
],
"shape": 3
},
{
"name": "ipadapter",
"type": "IPADAPTER",
"links": [
9
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "IPAdapterUnifiedLoader"
},
"widgets_values": [
"VIT-G (medium strength)"
]
},
{
"id": 18,
"type": "IPAdapterAdvanced",
"pos": [
1015,
342
],
"size": {
"0": 315,
"1": 278
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 8
},
{
"name": "ipadapter",
"type": "IPADAPTER",
"link": 9
},
{
"name": "image",
"type": "IMAGE",
"link": 10
},
{
"name": "image_negative",
"type": "IMAGE",
"link": null
},
{
"name": "attn_mask",
"type": "MASK",
"link": null
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
11
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "IPAdapterAdvanced"
},
"widgets_values": [
0.3,
"ease in-out",
"concat",
0,
1,
"V only"
]
},
{
"id": 19,
"type": "KSampler",
"pos": [
1847.4000244140625,
130
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 11
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 12
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 13
},
{
"name": "latent_image",
"type": "LATENT",
"link": 14
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
23
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
0,
"randomize",
30,
3,
"dpmpp_2m_sde",
"karras",
1
]
},
{
"id": 25,
"type": "Image Blend by Mask",
"pos": [
2572.4000244140625,
130
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "image_a",
"type": "IMAGE",
"link": 15
},
{
"name": "image_b",
"type": "IMAGE",
"link": 16
},
{
"name": "mask",
"type": "IMAGE",
"link": 17
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "Image Blend by Mask"
},
"widgets_values": [
1
]
},
{
"id": 26,
"type": "Convert Masks to Images",
"pos": [
1430,
358
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 18
}
],
"outputs": [
{
"name": "IMAGES",
"type": "IMAGE",
"links": [
17
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "Convert Masks to Images"
}
},
{
"id": 27,
"type": "EmptyLatentImage",
"pos": [
100,
778
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
14
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 28,
"type": "CLIPTextEncode",
"pos": [
515,
662
],
"size": [
400,
200
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 20
},
{
"name": "text",
"type": "STRING",
"link": 19,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 29,
"type": "CLIPTextEncode",
"pos": [
515,
992
],
"size": [
400,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 22
},
{
"name": "text",
"type": "STRING",
"link": 21,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
13
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 30,
"type": "StringInput_fal",
"pos": [
100,
1014
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
19
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "StringInput_fal"
},
"widgets_values": [
"Positive prompt",
"advertisement photography, drink on a table near a garden"
]
},
{
"id": 31,
"type": "StringInput_fal",
"pos": [
100,
1226
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
21
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "StringInput_fal"
},
"widgets_values": [
"Negative prompt",
"watermark"
]
},
{
"id": 32,
"type": "VAEDecode",
"pos": [
2262.4000244140625,
130
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 23
},
{
"name": "vae",
"type": "VAE",
"link": 24
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
15
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 33,
"type": "RemBGSession+",
"pos": [
100,
1438
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "REMBG_SESSION",
"type": "REMBG_SESSION",
"links": [
25
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RemBGSession+"
},
"widgets_values": [
"u2net: general purpose",
"CUDA"
]
},
{
"id": 36,
"type": "ImageRemoveBackground+",
"pos": [
1015,
750
],
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "rembg_session",
"type": "REMBG_SESSION",
"link": 25
},
{
"name": "image",
"type": "IMAGE",
"link": 26
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
16
],
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": [
18
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageRemoveBackground+"
}
}
],
"links": [
[
1,
25,
0,
9,
0,
"IMAGE"
],
[
2,
12,
0,
13,
0,
"IMAGE"
],
[
3,
13,
0,
14,
0,
"IMAGE"
],
[
4,
28,
0,
15,
0,
"CONDITIONING"
],
[
5,
16,
0,
15,
1,
"CONTROL_NET"
],
[
6,
14,
0,
15,
2,
"IMAGE"
],
[
7,
4,
0,
17,
0,
"MODEL"
],
[
8,
17,
0,
18,
0,
"MODEL"
],
[
9,
17,
1,
18,
1,
"IPADAPTER"
],
[
10,
13,
0,
18,
2,
"IMAGE"
],
[
11,
18,
0,
19,
0,
"MODEL"
],
[
12,
15,
0,
19,
1,
"CONDITIONING"
],
[
13,
29,
0,
19,
2,
"CONDITIONING"
],
[
14,
27,
0,
19,
3,
"LATENT"
],
[
15,
32,
0,
25,
0,
"IMAGE"
],
[
16,
36,
0,
25,
1,
"IMAGE"
],
[
17,
26,
0,
25,
2,
"IMAGE"
],
[
18,
36,
1,
26,
0,
"MASK"
],
[
19,
30,
0,
28,
1,
"STRING"
],
[
20,
4,
1,
28,
0,
"CLIP"
],
[
21,
31,
0,
29,
1,
"STRING"
],
[
22,
4,
1,
29,
0,
"CLIP"
],
[
23,
19,
0,
32,
0,
"LATENT"
],
[
24,
4,
2,
32,
1,
"VAE"
],
[
25,
33,
0,
36,
0,
"REMBG_SESSION"
],
[
26,
13,
0,
36,
1,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}