comfy-anything / workflows /sdxl-rembg-triposr.json
martintomov's picture
workflows
6286aa4 verified
raw
history blame contribute delete
No virus
21.9 kB
{
"last_node_id": 32,
"last_link_id": 45,
"nodes": [
{
"id": 6,
"type": "EmptyLatentImage",
"pos": [
1890,
1302
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
8
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 11,
"type": "ControlNetApply",
"pos": [
1886,
1621
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 14
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 16,
"slot_index": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 19
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
15
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply"
},
"widgets_values": [
1
]
},
{
"id": 12,
"type": "ControlNetLoader",
"pos": [
1890,
1488
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
16
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"control-lora-depth-rank128.safetensors"
]
},
{
"id": 15,
"type": "DepthAnythingPreprocessor",
"pos": [
1402,
1731
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 18
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
19
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "DepthAnythingPreprocessor"
},
"widgets_values": [
"depth_anything_vitl14.pth",
512
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
2339,
727
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 40
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 15
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 8
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
26
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
495006302962748,
"randomize",
4,
1,
"dpmpp_2m_sde",
"sgm_uniform",
1
]
},
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [
1404,
934
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
2
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
27
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"realvisxlV40_v40LightningBakedvae.safetensors"
]
},
{
"id": 25,
"type": "PreviewImage",
"pos": [
3013.8057969602296,
1050.9954701696279
],
"size": {
"0": 608.9395141601562,
"1": 627.6407470703125
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 28
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 23,
"type": "Image Blend by Mask",
"pos": [
2580,
1568
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "image_a",
"type": "IMAGE",
"link": 29
},
{
"name": "image_b",
"type": "IMAGE",
"link": 39
},
{
"name": "mask",
"type": "IMAGE",
"link": 31
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
32
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Image Blend by Mask"
},
"widgets_values": [
1
]
},
{
"id": 19,
"type": "Note",
"pos": [
1895,
1993
],
"size": {
"0": 295.87030029296875,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"segment anything prompt"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 24,
"type": "VAEDecode",
"pos": [
2699,
1004
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 26
},
{
"name": "vae",
"type": "VAE",
"link": 27
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28,
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 14,
"type": "ImageResize+",
"pos": [
1405,
1454
],
"size": {
"0": 315,
"1": 218
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 41
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
18,
36
],
"shape": 3,
"slot_index": 0
},
{
"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",
0
]
},
{
"id": 17,
"type": "SAMModelLoader (segment anything)",
"pos": [
1414,
1905
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 4,
"mode": 4,
"outputs": [
{
"name": "SAM_MODEL",
"type": "SAM_MODEL",
"links": [
21
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "SAMModelLoader (segment anything)"
},
"widgets_values": [
"sam_hq_vit_b (379MB)"
]
},
{
"id": 18,
"type": "GroundingDinoModelLoader (segment anything)",
"pos": [
1413,
2045
],
"size": {
"0": 361.20001220703125,
"1": 58
},
"flags": {},
"order": 5,
"mode": 4,
"outputs": [
{
"name": "GROUNDING_DINO_MODEL",
"type": "GROUNDING_DINO_MODEL",
"links": [
22
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "GroundingDinoModelLoader (segment anything)"
},
"widgets_values": [
"GroundingDINO_SwinT_OGC (694MB)"
]
},
{
"id": 28,
"type": "RemBGSession+",
"pos": [
1452,
2215
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "REMBG_SESSION",
"type": "REMBG_SESSION",
"links": [
35
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "RemBGSession+"
},
"widgets_values": [
"u2net: general purpose",
"CoreML"
]
},
{
"id": 21,
"type": "MaskToImage",
"pos": [
2322,
1891
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 37
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25,
31
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 16,
"type": "GroundingDinoSAMSegment (segment anything)",
"pos": [
1879,
1824
],
"size": {
"0": 352.79998779296875,
"1": 122
},
"flags": {},
"order": 10,
"mode": 4,
"inputs": [
{
"name": "sam_model",
"type": "SAM_MODEL",
"link": 21,
"slot_index": 0
},
{
"name": "grounding_dino_model",
"type": "GROUNDING_DINO_MODEL",
"link": 22,
"slot_index": 1
},
{
"name": "image",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"
},
"widgets_values": [
"shoe",
0.3
]
},
{
"id": 2,
"type": "LoraLoader",
"pos": [
1407,
724
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "clip",
"type": "CLIP",
"link": 2
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
40
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
4,
7
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"sdxl_lightning_4step_lora.safetensors",
1,
1
]
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
2651,
1988
],
"size": {
"0": 317.80670166015625,
"1": 296.42333984375
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 25
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 26,
"type": "PreviewImage",
"pos": [
3711,
1056
],
"size": {
"0": 638.635986328125,
"1": 626.17138671875
},
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 32
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 10,
"type": "LoadImage",
"pos": [
1021,
1098
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
41
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"image.png",
"image"
]
},
{
"id": 5,
"type": "CLIPTextEncode",
"pos": [
1846,
1054
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 7
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"illustration, anime, text"
]
},
{
"id": 4,
"type": "CLIPTextEncode",
"pos": [
1848,
790
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 4
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
14
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"advertisement photography, automobile magazine, photorealistic"
]
},
{
"id": 32,
"type": "TripoSRViewer",
"pos": [
3727.41386194789,
2362.8522661992633
],
"size": [
600,
500
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "mesh",
"type": "MESH",
"link": 45
}
],
"properties": {
"Node name for S&R": "TripoSRViewer"
},
"widgets_values": [
null
]
},
{
"id": 20,
"type": "PreviewImage",
"pos": [
2242,
2482
],
"size": {
"0": 311.2618408203125,
"1": 302.1988220214844
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 38
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 29,
"type": "ImageRemoveBackground+",
"pos": [
1863.0867919921875,
2297.1864013671875
],
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "rembg_session",
"type": "REMBG_SESSION",
"link": 35
},
{
"name": "image",
"type": "IMAGE",
"link": 36
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
38,
39,
44
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
37,
43
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "ImageRemoveBackground+"
}
},
{
"id": 31,
"type": "TripoSRSampler",
"pos": [
3244,
2399
],
"size": {
"0": 315,
"1": 122
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "TRIPOSR_MODEL",
"link": 42
},
{
"name": "reference_image",
"type": "IMAGE",
"link": 44
},
{
"name": "reference_mask",
"type": "MASK",
"link": 43
}
],
"outputs": [
{
"name": "MESH",
"type": "MESH",
"links": [
45
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "TripoSRSampler"
},
"widgets_values": [
256,
25
]
},
{
"id": 30,
"type": "TripoSRModelLoader",
"pos": [
2754,
2369
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "TRIPOSR_MODEL",
"type": "TRIPOSR_MODEL",
"links": [
42
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "TripoSRModelLoader"
},
"widgets_values": [
"TripoSR.ckpt",
8192
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"MODEL"
],
[
2,
1,
1,
2,
1,
"CLIP"
],
[
4,
2,
1,
4,
0,
"CLIP"
],
[
6,
5,
0,
3,
2,
"CONDITIONING"
],
[
7,
2,
1,
5,
0,
"CLIP"
],
[
8,
6,
0,
3,
3,
"LATENT"
],
[
14,
4,
0,
11,
0,
"CONDITIONING"
],
[
15,
11,
0,
3,
1,
"CONDITIONING"
],
[
16,
12,
0,
11,
1,
"CONTROL_NET"
],
[
18,
14,
0,
15,
0,
"IMAGE"
],
[
19,
15,
0,
11,
2,
"IMAGE"
],
[
21,
17,
0,
16,
0,
"SAM_MODEL"
],
[
22,
18,
0,
16,
1,
"GROUNDING_DINO_MODEL"
],
[
25,
21,
0,
22,
0,
"IMAGE"
],
[
26,
3,
0,
24,
0,
"LATENT"
],
[
27,
1,
2,
24,
1,
"VAE"
],
[
28,
24,
0,
25,
0,
"IMAGE"
],
[
29,
24,
0,
23,
0,
"IMAGE"
],
[
31,
21,
0,
23,
2,
"IMAGE"
],
[
32,
23,
0,
26,
0,
"IMAGE"
],
[
35,
28,
0,
29,
0,
"REMBG_SESSION"
],
[
36,
14,
0,
29,
1,
"IMAGE"
],
[
37,
29,
1,
21,
0,
"MASK"
],
[
38,
29,
0,
20,
0,
"IMAGE"
],
[
39,
29,
0,
23,
1,
"IMAGE"
],
[
40,
2,
0,
3,
0,
"MODEL"
],
[
41,
10,
0,
14,
0,
"IMAGE"
],
[
42,
30,
0,
31,
0,
"TRIPOSR_MODEL"
],
[
43,
29,
1,
31,
2,
"MASK"
],
[
44,
29,
0,
31,
1,
"IMAGE"
],
[
45,
31,
0,
32,
0,
"MESH"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}