- {
- "last_node_id": 14,
- "last_link_id": 26,
- "nodes": [
- {
- "id": 1,
- "type": "SwarmKSampler",
- "pos": [
- 1117.906494140625,
- -430.3401794433594
- ],
- "size": [
- 315,
- 738
- ],
- "flags": {},
- "order": 0,
- "mode": 0,
- "inputs": [
- {
- "name": "model",
- "type": "MODEL",
- "link": null
- },
- {
- "name": "positive",
- "type": "CONDITIONING",
- "link": null
- },
- {
- "name": "negative",
- "type": "CONDITIONING",
- "link": null
- },
- {
- "name": "latent_image",
- "type": "LATENT",
- "link": null
- },
- {
- "name": "noise_seed",
- "type": "INT",
- "link": null,
- "widget": {
- "name": "noise_seed"
- }
- }
- ],
- "outputs": [
- {
- "name": "LATENT",
- "type": "LATENT",
- "links": [
- 1
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmKSampler"
- },
- "widgets_values": [
- 726072208134389,
- "randomize",
- 20,
- 1,
- "euler_ancestral",
- "turbo",
- 0,
- 10000,
- 0,
- 0,
- -1,
- -1,
- 7,
- "enable",
- "disable",
- "none",
- false,
- 1024
- ]
- },
- {
- "id": 6,
- "type": "VAEEncode",
- "pos": [
- 1919.2078857421875,
- -242.107177734375
- ],
- "size": [
- 210,
- 46
- ],
- "flags": {},
- "order": 7,
- "mode": 0,
- "inputs": [
- {
- "name": "pixels",
- "type": "IMAGE",
- "link": 7
- },
- {
- "name": "vae",
- "type": "VAE",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "LATENT",
- "type": "LATENT",
- "links": [
- 8
- ]
- }
- ],
- "properties": {
- "Node name for S&R": "VAEEncode"
- },
- "widgets_values": []
- },
- {
- "id": 2,
- "type": "VAEDecode",
- "pos": [
- 1210.9083251953125,
- -529.3363647460938
- ],
- "size": [
- 210,
- 46
- ],
- "flags": {},
- "order": 1,
- "mode": 0,
- "inputs": [
- {
- "name": "samples",
- "type": "LATENT",
- "link": 1
- },
- {
- "name": "vae",
- "type": "VAE",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 2,
- 4,
- 10
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "VAEDecode"
- },
- "widgets_values": []
- },
- {
- "id": 13,
- "type": "MaskToImage",
- "pos": [
- 1536.8934326171875,
- 315.68603515625
- ],
- "size": [
- 264.5999755859375,
- 26
- ],
- "flags": {},
- "order": 4,
- "mode": 0,
- "inputs": [
- {
- "name": "mask",
- "type": "MASK",
- "link": 23
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 24
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "MaskToImage"
- },
- "widgets_values": []
- },
- {
- "id": 12,
- "type": "SwarmImageCrop",
- "pos": [
- 1523.0709228515625,
- 385.11236572265625
- ],
- "size": [
- 315,
- 130
- ],
- "flags": {},
- "order": 6,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 24
- },
- {
- "name": "x",
- "type": "INT",
- "link": 19,
- "widget": {
- "name": "x"
- }
- },
- {
- "name": "y",
- "type": "INT",
- "link": 20,
- "widget": {
- "name": "y"
- }
- },
- {
- "name": "width",
- "type": "INT",
- "link": 21,
- "widget": {
- "name": "width"
- }
- },
- {
- "name": "height",
- "type": "INT",
- "link": 22,
- "widget": {
- "name": "height"
- }
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 25
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmImageCrop"
- },
- "widgets_values": [
- 0,
- 0,
- 512,
- 512
- ]
- },
- {
- "id": 7,
- "type": "SetLatentNoiseMask",
- "pos": [
- 1914.59326171875,
- -153.7865753173828
- ],
- "size": [
- 210,
- 46
- ],
- "flags": {},
- "order": 9,
- "mode": 0,
- "inputs": [
- {
- "name": "samples",
- "type": "LATENT",
- "link": 8
- },
- {
- "name": "mask",
- "type": "MASK",
- "link": 26
- }
- ],
- "outputs": [
- {
- "name": "LATENT",
- "type": "LATENT",
- "links": [
- 9
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SetLatentNoiseMask"
- },
- "widgets_values": []
- },
- {
- "id": 14,
- "type": "ImageToMask",
- "pos": [
- 1524.9552001953125,
- 564.4898681640625
- ],
- "size": [
- 315,
- 58
- ],
- "flags": {},
- "order": 8,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 25
- }
- ],
- "outputs": [
- {
- "name": "MASK",
- "type": "MASK",
- "links": [
- 26
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "ImageToMask"
- },
- "widgets_values": [
- "red"
- ]
- },
- {
- "id": 3,
- "type": "SwarmClipSeg",
- "pos": [
- 1451.283203125,
- -414.34124755859375
- ],
- "size": [
- 400,
- 200
- ],
- "flags": {},
- "order": 2,
- "mode": 0,
- "inputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "link": 2
- }
- ],
- "outputs": [
- {
- "name": "MASK",
- "type": "MASK",
- "links": [
- 3,
- 23
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmClipSeg"
- },
- "widgets_values": [
- "face",
- 0.10000000149011612,
- [
- false,
- true
- ]
- ]
- },
- {
- "id": 4,
- "type": "SwarmMaskBounds",
- "pos": [
- 1525.556640625,
- -150.03494262695312
- ],
- "size": [
- 315,
- 118
- ],
- "flags": {},
- "order": 3,
- "mode": 0,
- "inputs": [
- {
- "name": "mask",
- "type": "MASK",
- "link": 3
- }
- ],
- "outputs": [
- {
- "name": "x",
- "type": "INT",
- "links": [
- 5,
- 11,
- 19
- ],
- "slot_index": 0
- },
- {
- "name": "y",
- "type": "INT",
- "links": [
- 6,
- 12,
- 20
- ],
- "slot_index": 1
- },
- {
- "name": "width",
- "type": "INT",
- "links": [
- 14,
- 21
- ],
- "slot_index": 2
- },
- {
- "name": "height",
- "type": "INT",
- "links": [
- 15,
- 22
- ],
- "slot_index": 3
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmMaskBounds"
- },
- "widgets_values": [
- 16
- ]
- },
- {
- "id": 5,
- "type": "SwarmImageCrop",
- "pos": [
- 1517.333251953125,
- 26.365083694458008
- ],
- "size": [
- 315,
- 130
- ],
- "flags": {},
- "order": 5,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 4
- },
- {
- "name": "x",
- "type": "INT",
- "link": 5,
- "widget": {
- "name": "x"
- }
- },
- {
- "name": "y",
- "type": "INT",
- "link": 6,
- "widget": {
- "name": "y"
- }
- },
- {
- "name": "width",
- "type": "INT",
- "link": 14,
- "widget": {
- "name": "width"
- }
- },
- {
- "name": "height",
- "type": "INT",
- "link": 15,
- "widget": {
- "name": "height"
- }
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 7
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmImageCrop"
- },
- "widgets_values": [
- 0,
- 0,
- 512,
- 512
- ]
- },
- {
- "id": 11,
- "type": "VAEDecode",
- "pos": [
- 2291.72802734375,
- -522.5234375
- ],
- "size": [
- 210,
- 46
- ],
- "flags": {},
- "order": 11,
- "mode": 0,
- "inputs": [
- {
- "name": "samples",
- "type": "LATENT",
- "link": 17
- },
- {
- "name": "vae",
- "type": "VAE",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 18
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "VAEDecode"
- },
- "widgets_values": []
- },
- {
- "id": 8,
- "type": "SwarmKSampler",
- "pos": [
- 2204.388671875,
- -421.53155517578125
- ],
- "size": [
- 315,
- 738
- ],
- "flags": {},
- "order": 10,
- "mode": 0,
- "inputs": [
- {
- "name": "model",
- "type": "MODEL",
- "link": null
- },
- {
- "name": "positive",
- "type": "CONDITIONING",
- "link": null
- },
- {
- "name": "negative",
- "type": "CONDITIONING",
- "link": null
- },
- {
- "name": "latent_image",
- "type": "LATENT",
- "link": 9
- },
- {
- "name": "noise_seed",
- "type": "INT",
- "link": null,
- "widget": {
- "name": "noise_seed"
- }
- }
- ],
- "outputs": [
- {
- "name": "LATENT",
- "type": "LATENT",
- "links": [
- 17
- ],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "SwarmKSampler"
- },
- "widgets_values": [
- 225746822922395,
- "randomize",
- 10,
- 8,
- "euler_ancestral",
- "turbo",
- 4,
- 10000,
- 0,
- 0,
- -1,
- -1,
- 7,
- "enable",
- "disable",
- "none",
- false,
- 1024
- ]
- },
- {
- "id": 9,
- "type": "ImageCompositeMasked",
- "pos": [
- 2549.40234375,
- -402.7840881347656
- ],
- "size": [
- 315,
- 146
- ],
- "flags": {},
- "order": 12,
- "mode": 0,
- "inputs": [
- {
- "name": "destination",
- "type": "IMAGE",
- "link": 10
- },
- {
- "name": "source",
- "type": "IMAGE",
- "link": 18
- },
- {
- "name": "mask",
- "type": "MASK",
- "link": null,
- "shape": 7
- },
- {
- "name": "x",
- "type": "INT",
- "link": 11,
- "widget": {
- "name": "x"
- }
- },
- {
- "name": "y",
- "type": "INT",
- "link": 12,
- "widget": {
- "name": "y"
- }
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [],
- "slot_index": 0
- }
- ],
- "properties": {
- "Node name for S&R": "ImageCompositeMasked"
- },
- "widgets_values": [
- 0,
- 0,
- false
- ]
- }
- ],
- "links": [
- [
- 1,
- 1,
- 0,
- 2,
- 0,
- "LATENT"
- ],
- [
- 2,
- 2,
- 0,
- 3,
- 0,
- "IMAGE"
- ],
- [
- 3,
- 3,
- 0,
- 4,
- 0,
- "MASK"
- ],
- [
- 4,
- 2,
- 0,
- 5,
- 0,
- "IMAGE"
- ],
- [
- 5,
- 4,
- 0,
- 5,
- 1,
- "INT"
- ],
- [
- 6,
- 4,
- 1,
- 5,
- 2,
- "INT"
- ],
- [
- 7,
- 5,
- 0,
- 6,
- 0,
- "IMAGE"
- ],
- [
- 8,
- 6,
- 0,
- 7,
- 0,
- "LATENT"
- ],
- [
- 9,
- 7,
- 0,
- 8,
- 3,
- "LATENT"
- ],
- [
- 10,
- 2,
- 0,
- 9,
- 0,
- "IMAGE"
- ],
- [
- 11,
- 4,
- 0,
- 9,
- 3,
- "INT"
- ],
- [
- 12,
- 4,
- 1,
- 9,
- 4,
- "INT"
- ],
- [
- 14,
- 4,
- 2,
- 5,
- 3,
- "INT"
- ],
- [
- 15,
- 4,
- 3,
- 5,
- 4,
- "INT"
- ],
- [
- 17,
- 8,
- 0,
- 11,
- 0,
- "LATENT"
- ],
- [
- 18,
- 11,
- 0,
- 9,
- 1,
- "IMAGE"
- ],
- [
- 19,
- 4,
- 0,
- 12,
- 1,
- "INT"
- ],
- [
- 20,
- 4,
- 1,
- 12,
- 2,
- "INT"
- ],
- [
- 21,
- 4,
- 2,
- 12,
- 3,
- "INT"
- ],
- [
- 22,
- 4,
- 3,
- 12,
- 4,
- "INT"
- ],
- [
- 23,
- 3,
- 0,
- 13,
- 0,
- "MASK"
- ],
- [
- 24,
- 13,
- 0,
- 12,
- 0,
- "IMAGE"
- ],
- [
- 25,
- 12,
- 0,
- 14,
- 0,
- "IMAGE"
- ],
- [
- 26,
- 14,
- 0,
- 7,
- 1,
- "MASK"
- ]
- ],
- "groups": [],
- "config": {},
- "extra": {
- "ds": {
- "scale": 0.9646149645000038,
- "offset": [
- -585.8860057234781,
- 634.8752549245514
- ]
- },
- "node_versions": {
- "comfy-core": "0.3.27"
- }
- },
- "version": 0.4
- }