这个工作流就是comyui图片局部重绘工作流,先保存为json文件,再在comyui中打开
{ "last_node_id": 72, "last_link_id": 26, "nodes": [ { "id": 63, "type": "VAELoader", "pos": [ 120, 630 ], "size": { "0": 315, "1": 58 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 14, 17 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "vae-ft-mse-840000-ema-pruned.safetensors" ], "_widget_cache_map": {}, "category": "Primitive Nodes" }, { "id": 65, "type": "VAEEncodeForInpaint", "pos": [ 508, 629 ], "size": { "0": 226.8000030517578, "1": 98 }, "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "pixels", "type": "IMAGE", "link": 16, "label": "图像" }, { "name": "vae", "type": "VAE", "link": 17, "label": "VAE" }, { "name": "mask", "type": "MASK", "link": 18, "label": "遮罩" } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 12 ], "shape": 3, "slot_index": 0, "label": "Latent" } ], "properties": { "Node name for S&R": "VAEEncodeForInpaint" }, "widgets_values": [ 12 ], "_widget_cache_map": {}, "category": "Primitive Nodes" }, { "id": 6, "type": "CLIPTextEncode", "pos": [ 441, 90 ], "size": { "0": 370, "1": 160 }, "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 3, "label": "CLIP" } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 20, 23 ], "slot_index": 0, "label": "条件" } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "beautiful scenery nature glass bottle landscape, , purple galaxy bottle," ], "_widget_cache_map": {}, "color": "#232", "bgcolor": "#353", "category": "Primitive Nodes" }, { "id": 7, "type": "CLIPTextEncode", "pos": [ 438, 301 ], "size": { "0": 370, "1": 160 }, "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 5, "label": "CLIP" } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 21, 24 ], "slot_index": 0, "label": "条件" } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "text, watermark,horror,zombie, nsfw," ], "_widget_cache_map": {}, "color": "#322", "bgcolor": "#533", "category": "Primitive Nodes" }, { "id": 59, "type": "KSampler", "pos": [ 836, 92 ], "size": { "0": 300, "1": 474 }, "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 22, "label": "模型" }, { "name": "positive", "type": "CONDITIONING", "link": 20, "label": "正面条件" }, { "name": "negative", "type": "CONDITIONING", "link": 21, "label": "负面条件" }, { "name": "latent_image", "type": "LATENT", "link": 12, "label": "Latent" } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 19 ], "slot_index": 0, "label": "Latent" } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 289351635342257, "randomize", 25, 6.5, "dpmpp_2m", "karras", 1 ], "_widget_cache_map": {}, "category": "Primitive Nodes" }, { "id": 67, "type": "KSampler", "pos": [ 1168, 94 ], "size": { "0": 300, "1": 474 }, "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 25, "label": "模型" }, { "name": "positive", "type": "CONDITIONING", "link": 23, "label": "正面条件" }, { "name": "negative", "type": "CONDITIONING", "link": 24, "label": "负面条件" }, { "name": "latent_image", "type": "LATENT", "link": 19, "label": "Latent" } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 13 ], "slot_index": 0, "label": "Latent" } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 950334778818192, "randomize", 20, 6.5, "dpmpp_2m", "karras", 0.24 ], "_widget_cache_map": {}, "category": "Primitive Nodes" }, { "id": 60, "type": "VAEDecode", "pos": [ 1496, 106 ], "size": { "0": 140, "1": 60 }, "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 13, "label": "Latent" }, { "name": "vae", "type": "VAE", "link": 14, "label": "VAE" } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 15 ], "slot_index": 0, "label": "图像" } ], "properties": { "Node name for S&R": "VAEDecode" }, "category": "Primitive Nodes" }, { "id": 61, "type": "SaveImage", "pos": [ 1499, 213 ], "size": { "0": 410, "1": 460 }, "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 15, "label": "图像" } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "comfy" ], "_widget_cache_map": {}, "category": "Primitive Nodes" }, { "id": 69, "type": "Note", "pos": [ 27, 98 ], "size": { "0": 326.425537109375, "1": 133.8199920654297 }, "flags": {}, "order": 1, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "尽量选择 inpainting 大模型" ], "_widget_cache_map": {}, "color": "#432", "bgcolor": "#653", "category": "Official" }, { "id": 68, "type": "Note", "pos": [ 1170, 614 ], "size": { "0": 298.7884826660156, "1": 89.97020721435547 }, "flags": {}, "order": 2, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "做了一个二次refiner节点,出来的效果会比单次采样好一些,抽卡吧,少年" ], "_widget_cache_map": {}, "color": "#432", "bgcolor": "#653", "category": "Official" }, { "id": 4, "type": "CheckpointLoaderSimple", "pos": [ 30, 280 ], "size": { "0": 328.5366516113281, "1": 98 }, "flags": {}, "order": 3, "mode": 0, "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 22, 25 ], "slot_index": 0, "label": "模型" }, { "name": "CLIP", "type": "CLIP", "links": [ 3, 5 ], "slot_index": 1, "label": "CLIP" }, { "name": "VAE", "type": "VAE", "links": [], "slot_index": 2, "label": "VAE" } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "Realistic Vision V5.1_V5.1" ], "_widget_cache_map": { "Realistic Vision V5.1_V5.1": { "name": "Realistic Vision V5.1_V5.1", "value": 27957 } }, "category": "Primitive Nodes" }, { "id": 66, "type": "LoadImage", "pos": [ 130, 730 ], "size": { "0": 315, "1": 314.00006103515625 }, "flags": {}, "order": 4, "mode": 0, "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 16 ], "shape": 3, "slot_index": 0, "label": "图像" }, { "name": "MASK", "type": "MASK", "links": [ 18 ], "shape": 3, "slot_index": 1, "label": "遮罩" } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "%Empty Latent Image.width%x%Empty Latent Image.height%_00001_.png", "image" ], "_widget_cache_map": { "%Empty Latent Image.width%x%Empty Latent Image.height%_00001_.png": { "value": "img/64985f011cb94b84bb2d472719b985d8/208585227e5b6fb73650f88750eddc065fecd75df6794ddfa62bb8716293069a.png", "name": "%Empty Latent Image.width%x%Empty Latent Image.height%_00001_.png", "url": "https://liblibai-tmp-image.vibrou.com/img/64985f011cb94b84bb2d472719b985d8/208585227e5b6fb73650f88750eddc065fecd75df6794ddfa62bb8716293069a.png" } }, "category": "Primitive Nodes" }, { "id": 64, "type": "Note", "pos": [ 156, 1099 ], "size": { "0": 269.0942687988281, "1": 129.0528564453125 }, "flags": {}, "order": 5, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "右键点击图像,选择\n\"在蒙版编辑器中打开\"\n\n并对您想要更改的区域进行蒙版处理。" ], "_widget_cache_map": {}, "color": "#432", "bgcolor": "#653", "category": "Official" } ], "links": [ [ 3, 4, 1, 6, 0, "CLIP" ], [ 5, 4, 1, 7, 0, "CLIP" ], [ 12, 65, 0, 59, 3, "LATENT" ], [ 13, 67, 0, 60, 0, "LATENT" ], [ 14, 63, 0, 60, 1, "VAE" ], [ 15, 60, 0, 61, 0, "IMAGE" ], [ 16, 66, 0, 65, 0, "IMAGE" ], [ 17, 63, 0, 65, 1, "VAE" ], [ 18, 66, 1, 65, 2, "MASK" ], [ 19, 59, 0, 67, 3, "LATENT" ], [ 20, 6, 0, 59, 1, "CONDITIONING" ], [ 21, 7, 0, 59, 2, "CONDITIONING" ], [ 22, 4, 0, 59, 0, "MODEL" ], [ 23, 6, 0, 67, 1, "CONDITIONING" ], [ 24, 7, 0, 67, 2, "CONDITIONING" ], [ 25, 4, 0, 67, 0, "MODEL" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.8769226950000005, "offset": { "0": 24.068812405114667, "1": -96.26166604075186 } }, "workspace_info": { "id": "lskSDSgGa2RNe1mRBgqQc", "saveLock": false, "cloudID": null, "coverMediaPath": null }, "0246.VERSION": [ 0, 0, 4 ] }, "version": 0.4 }
网友回复