workflows

基础扩图comfyui工作流

基础扩图comfyui工作流

{
  "last_node_id": 173,
  "last_link_id": 351,
  "nodes": [
    {
      "id": 148,
      "type": "CLIPTextEncode",
      "pos": [
        -1390,
        1850
      ],
      "size": {
        "0": 400,
        "1": 200
      },
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 312,
          "label": "clip"
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            330
          ],
          "shape": 3,
          "label": "CONDITIONING",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, artifacts, signature, watermark, username, blurry, missing arms, long neck, humpbacked, bad feet, nsfw"
      ]
    },
    {
      "id": 116,
      "type": "VAEEncodeForInpaint",
      "pos": [
        -1240,
        1330
      ],
      "size": {
        "0": 344.7344665527344,
        "1": 98
      },
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 340,
          "label": "pixels"
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 241,
          "label": "vae"
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 339,
          "label": "mask"
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            332,
            338
          ],
          "shape": 3,
          "slot_index": 0,
          "label": "LATENT"
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncodeForInpaint"
      },
      "widgets_values": [
        20
      ]
    },
    {
      "id": 91,
      "type": "INPAINT_ApplyFooocusInpaint",
      "pos": [
        -470,
        344
      ],
      "size": {
        "0": 210,
        "1": 66
      },
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 351,
          "label": "model"
        },
        {
          "name": "patch",
          "type": "INPAINT_PATCH",
          "link": 167,
          "label": "patch"
        },
        {
          "name": "latent",
          "type": "LATENT",
          "link": 338,
          "label": "latent"
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            328
          ],
          "shape": 3,
          "slot_index": 0,
          "label": "MODEL"
        }
      ],
      "properties": {
        "Node name for S&R": "INPAINT_ApplyFooocusInpaint"
      }
    },
    {
      "id": 90,
      "type": "INPAINT_LoadFooocusInpaint",
      "pos": [
        -927,
        498
      ],
      "size": {
        "0": 315,
        "1": 82
      },
      "flags": {},
      "order": 0,
      "mode": 0,
      "outputs": [
        {
          "name": "INPAINT_PATCH",
          "type": "INPAINT_PATCH",
          "links": [
            167
          ],
          "shape": 3,
          "slot_index": 0,
          "label": "INPAINT_PATCH"
        }
      ],
      "properties": {
        "Node name for S&R": "INPAINT_LoadFooocusInpaint"
      },
      "widgets_values": [
        "fooocus_inpaint_head.pth",
        "inpaint_v26.fooocus.patch"
      ]
    },
    {
      "id": 173,
      "type": "IPAdapterAdvanced",
      "pos": [
        -1302,
        402
      ],
      "size": {
        "0": 315,
        "1": 278
      },
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 348,
          "label": "model"
        },
        {
          "name": "ipadapter",
          "type": "IPADAPTER",
          "link": 347,
          "label": "ipadapter"
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 350,
          "label": "image"
        },
        {
          "name": "image_negative",
          "type": "IMAGE",
          "link": null,
          "label": "image_negative"
        },
        {
          "name": "attn_mask",
          "type": "MASK",
          "link": null,
          "label": "attn_mask"
        },
        {
          "name": "clip_vision",
          "type": "CLIP_VISION",
          "link": 346,
          "label": "clip_vision"
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            351
          ],
          "shape": 3,
          "label": "MODEL",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "IPAdapterAdvanced"
      },
      "widgets_values": [
        0.7000000000000001,
        "ease in",
        "concat",
        0,
        1,
        "V only"
      ]
    },
    {
      "id": 110,
      "type": "IPAdapterModelLoader",
      "pos": [
        -1766.5551304082128,
        348.4822155454711
      ],
      "size": {
        "0": 374.174072265625,
        "1": 58
      },
      "flags": {},
      "order": 1,
      "mode": 0,
      "outputs": [
        {
          "name": "IPADAPTER",
          "type": "IPADAPTER",
          "links": [
            347
          ],
          "shape": 3,
          "label": "IPADAPTER",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "IPAdapterModelLoader"
      },
      "widgets_values": [
        "ip-adapter-plus_sdxl_vit-h.safetensors"
      ]
    },
    {
      "id": 111,
      "type": "CLIPVisionLoader",
      "pos": [
        -1775,
        479
      ],
      "size": {
        "0": 386.67181396484375,
        "1": 58
      },
      "flags": {},
      "order": 2,
      "mode": 0,
      "outputs": [
        {
          "name": "CLIP_VISION",
          "type": "CLIP_VISION",
          "links": [
            346
          ],
          "shape": 3,
          "label": "CLIP_VISION",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPVisionLoader"
      },
      "widgets_values": [
        "open_clip_pytorch_model.safetensors"
      ]
    },
    {
      "id": 163,
      "type": "PreviewImage",
      "pos": [
        -785,
        662
      ],
      "size": {
        "0": 358.6148681640625,
        "1": 302.4101257324219
      },
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 341,
          "label": "images"
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    },
    {
      "id": 157,
      "type": "ImagePadForOutpaint",
      "pos": [
        -1229,
        771
      ],
      "size": {
        "0": 315,
        "1": 174
      },
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 324,
          "label": "image"
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            340,
            341
          ],
          "shape": 3,
          "label": "IMAGE",
          "slot_index": 0
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            339
          ],
          "shape": 3,
          "label": "MASK",
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "ImagePadForOutpaint"
      },
      "widgets_values": [
        200,
        200,
        200,
        200,
        80
      ]
    },
    {
      "id": 145,
      "type": "CLIPTextEncode",
      "pos": [
        -1400,
        1580
      ],
      "size": {
        "0": 400,
        "1": 200
      },
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 323,
          "label": "clip"
        },
        {
          "name": "text",
          "type": "STRING",
          "link": 345,
          "widget": {
            "name": "text"
          },
          "label": "text"
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            331
          ],
          "shape": 3,
          "label": "CONDITIONING",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 156,
      "type": "WD14Tagger|pysssss",
      "pos": [
        -1780,
        1560
      ],
      "size": {
        "0": 320,
        "1": 220
      },
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 321,
          "label": "image",
          "slot_index": 0
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            345
          ],
          "shape": 6,
          "label": "STRING",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "WD14Tagger|pysssss"
      },
      "widgets_values": [
        "wd-v1-4-convnext-tagger-v2",
        0.35,
        0.85,
        "",
        false,
        "",
        "flower, outdoors, sky, day, cloud, blurry, no_humans, depth_of_field, blurry_background, leaf, sunlight, scenery, mountain, yellow_flower, sun, still_life, desert"
      ]
    },
    {
      "id": 136,
      "type": "PreviewImage",
      "pos": [
        -220,
        1390
      ],
      "size": {
        "0": 410.8977966308594,
        "1": 675.2236328125
      },
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 337,
          "label": "images"
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 37,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -2210,
        1370
      ],
      "size": {
        "0": 315,
        "1": 98
      },
      "flags": {},
      "order": 3,
      "mode": 0,
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            348
          ],
          "shape": 3,
          "label": "MODEL",
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            312,
            323
          ],
          "shape": 3,
          "label": "CLIP",
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            241,
            342
          ],
          "shape": 3,
          "label": "VAE",
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "juggernautXL.safetensors"
      ]
    },
    {
      "id": 159,
      "type": "KSampler",
      "pos": [
        -895,
        1559
      ],
      "size": {
        "0": 315,
        "1": 262
      },
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 328,
          "label": "model"
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 331,
          "label": "positive"
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 330,
          "label": "negative"
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 332,
          "label": "latent_image"
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            333
          ],
          "shape": 3,
          "label": "LATENT",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        304653119951128,
        "randomize",
        20,
        8,
        "dpmpp_2m_sde",
        "karras",
        1
      ]
    },
    {
      "id": 160,
      "type": "VAEDecode",
      "pos": [
        -535,
        1438
      ],
      "size": {
        "0": 210,
        "1": 46
      },
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 333,
          "label": "samples"
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 342,
          "label": "vae"
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            337
          ],
          "shape": 3,
          "label": "IMAGE",
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 34,
      "type": "LoadImage",
      "pos": [
        -2190,
        1570
      ],
      "size": {
        "0": 285.4780578613281,
        "1": 376.67449951171875
      },
      "flags": {},
      "order": 4,
      "mode": 0,
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            321,
            324,
            350
          ],
          "shape": 3,
          "label": "IMAGE",
          "slot_index": 0
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [],
          "shape": 3,
          "label": "MASK",
          "slot_index": 1
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_00640_.png",
        "image"
      ]
    }
  ],
  "links": [
    [
      167,
      90,
      0,
      91,
      1,
      "INPAINT_PATCH"
    ],
    [
      241,
      37,
      2,
      116,
      1,
      "VAE"
    ],
    [
      312,
      37,
      1,
      148,
      0,
      "CLIP"
    ],
    [
      321,
      34,
      0,
      156,
      0,
      "IMAGE"
    ],
    [
      323,
      37,
      1,
      145,
      0,
      "CLIP"
    ],
    [
      324,
      34,
      0,
      157,
      0,
      "IMAGE"
    ],
    [
      328,
      91,
      0,
      159,
      0,
      "MODEL"
    ],
    [
      330,
      148,
      0,
      159,
      2,
      "CONDITIONING"
    ],
    [
      331,
      145,
      0,
      159,
      1,
      "CONDITIONING"
    ],
    [
      332,
      116,
      0,
      159,
      3,
      "LATENT"
    ],
    [
      333,
      159,
      0,
      160,
      0,
      "LATENT"
    ],
    [
      337,
      160,
      0,
      136,
      0,
      "IMAGE"
    ],
    [
      338,
      116,
      0,
      91,
      2,
      "LATENT"
    ],
    [
      339,
      157,
      1,
      116,
      2,
      "MASK"
    ],
    [
      340,
      157,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      341,
      157,
      0,
      163,
      0,
      "IMAGE"
    ],
    [
      342,
      37,
      2,
      160,
      1,
      "VAE"
    ],
    [
      345,
      156,
      0,
      145,
      1,
      "STRING"
    ],
    [
      346,
      111,
      0,
      173,
      5,
      "CLIP_VISION"
    ],
    [
      347,
      110,
      0,
      173,
      1,
      "IPADAPTER"
    ],
    [
      348,
      37,
      0,
      173,
      0,
      "MODEL"
    ],
    [
      350,
      34,
      0,
      173,
      2,
      "IMAGE"
    ],
    [
      351,
      173,
      0,
      91,
      0,
      "MODEL"
    ]
  ],
  "groups": [
    {
      "title": "图生图",
      "bounding": [
        -2367,
        1208,
        2765,
        1021
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    },
    {
      "title": "扩图",
      "bounding": [
        -1787,
        274,
        1615,
        812
      ],
      "color": "#A88",
      "font_size": 24,
      "locked": false
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6727499949325629,
      "offset": [
        1499.2766562890085,
        -1171.780745387652
      ]
    }
  },
  "version": 0.4
}