diff --git a/example_workflows/wan2_2_T2I_Partial_Inpaint.jpg b/example_workflows/wan2_2_T2I_Partial_Inpaint.jpg new file mode 100644 index 0000000..3e4d6fd Binary files /dev/null and b/example_workflows/wan2_2_T2I_Partial_Inpaint.jpg differ diff --git a/example_workflows/wan2_2_T2I_Partial_Inpaint.json b/example_workflows/wan2_2_T2I_Partial_Inpaint.json new file mode 100644 index 0000000..9f0d3e3 --- /dev/null +++ b/example_workflows/wan2_2_T2I_Partial_Inpaint.json @@ -0,0 +1,1128 @@ +{ + "id": "26bf2769-956f-4cee-b5f6-a57a366c9101", + "revision": 0, + "last_node_id": 84, + "last_link_id": 181, + "nodes": [ + { + "id": 56, + "type": "UNETLoader", + "pos": [ + 34.70310592651367, + 57.175601959228516 + ], + "size": [ + 346.7470703125, + 82 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "slot_index": 0, + "links": [ + 112 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "UNETLoader", + "models": [ + { + "name": "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors", + "directory": "diffusion_models" + } + ], + "widget_ue_connectable": {} + }, + "widgets_values": [ + "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors", + "default" + ] + }, + { + "id": 54, + "type": "ModelSamplingSD3", + "pos": [ + 640, + -70 + ], + "size": [ + 210, + 60 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 110 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "slot_index": 0, + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "ModelSamplingSD3", + "widget_ue_connectable": {} + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 55, + "type": "ModelSamplingSD3", + "pos": [ + 640, + 60 + ], + "size": [ + 210, + 58 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 112 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "slot_index": 0, + "links": [ + 159 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "ModelSamplingSD3", + "widget_ue_connectable": {} + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 62, + "type": "MarkdownNote", + "pos": [ + -480, + -120 + ], + "size": [ + 480, + 350 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Model Links", + "properties": { + "widget_ue_connectable": {} + }, + "widgets_values": [ + "[Tutorial](https://docs.comfy.org/tutorials/video/wan/wan2_2\n) | [教程](https://docs.comfy.org/zh-CN/tutorials/video/wan/wan2_2\n)\n\n**Diffusion Model**\n- [wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors)\n- [wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors)\n\n**VAE**\n- [wan_2.1_vae.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors)\n\n**Text Encoder** \n- [umt5_xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors)\n\n\nFile save location\n\n```\nComfyUI/\n├───📂 models/\n│ ├───📂 diffusion_models/\n│ │ ├─── wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors\n│ │ └─── wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors\n│ ├───📂 text_encoders/\n│ │ └─── umt5_xxl_fp8_e4m3fn_scaled.safetensors \n│ └───📂 vae/\n│ └── wan_2.1_vae.safetensors\n```\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 415.27801513671875, + 562.8309936523438 + ], + "size": [ + 425.27801513671875, + 180.6060791015625 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 75 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "slot_index": 0, + "links": [ + 161 + ] + } + ], + "title": "CLIP Text Encode (Negative Prompt)", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "CLIPTextEncode", + "widget_ue_connectable": {} + }, + "widgets_values": [ + "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 59, + "type": "EmptyHunyuanLatentVideo", + "pos": [ + 50, + 530 + ], + "size": [ + 315, + 130 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "slot_index": 0, + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "EmptyHunyuanLatentVideo", + "widget_ue_connectable": {} + }, + "widgets_values": [ + 768, + 1344, + 1, + 1 + ] + }, + { + "id": 37, + "type": "UNETLoader", + "pos": [ + 34.225364685058594, + -71.77911376953125 + ], + "size": [ + 346.7470703125, + 82 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "slot_index": 0, + "links": [ + 110 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "UNETLoader", + "models": [ + { + "name": "wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors", + "directory": "diffusion_models" + } + ], + "widget_ue_connectable": {} + }, + "widgets_values": [ + "wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors", + "default" + ] + }, + { + "id": 38, + "type": "CLIPLoader", + "pos": [ + 38.86457061767578, + 189.26513671875 + ], + "size": [ + 346.391845703125, + 106 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "slot_index": 0, + "links": [ + 74, + 75 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "CLIPLoader", + "models": [ + { + "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors", + "directory": "text_encoders" + } + ], + "widget_ue_connectable": {} + }, + "widgets_values": [ + "umt5_xxl_fp8_e4m3fn_scaled.safetensors", + "wan", + "default" + ] + }, + { + "id": 66, + "type": "PrimitiveNode", + "pos": [ + 869.0523071289062, + 458.133544921875 + ], + "size": [ + 302.1168212890625, + 106 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "COMBO", + "type": "COMBO", + "widget": { + "name": "scheduler" + }, + "links": [ + 165 + ] + } + ], + "title": "Scheduler", + "properties": { + "Run widget replace on values": false, + "widget_ue_connectable": {} + }, + "widgets_values": [ + "sgm_uniform", + "fixed", + "" + ] + }, + { + "id": 71, + "type": "VAEEncode", + "pos": [ + 386.7767333984375, + 924.7274780273438 + ], + "size": [ + 140, + 46 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 143 + }, + { + "name": "vae", + "type": "VAE", + "link": 146 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 148 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "VAEEncode" + }, + "widgets_values": [] + }, + { + "id": 39, + "type": "VAELoader", + "pos": [ + 40, + 350 + ], + "size": [ + 344.731689453125, + 59.98149108886719 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "slot_index": 0, + "links": [ + 76, + 146 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "VAELoader", + "models": [ + { + "name": "wan_2.1_vae.safetensors", + "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors", + "directory": "vae" + } + ], + "widget_ue_connectable": {} + }, + "widgets_values": [ + "wan_2.1_vae.safetensors" + ] + }, + { + "id": 70, + "type": "SaveImage", + "pos": [ + 1818.5047607421875, + -71.57525634765625 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 142 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59" + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 74, + "type": "SetLatentNoiseMask", + "pos": [ + 469.00274658203125, + 822.289306640625 + ], + "size": [ + 180.74765014648438, + 46 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 148 + }, + { + "name": "mask", + "type": "MASK", + "link": 149 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 181 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SetLatentNoiseMask" + }, + "widgets_values": [] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1836.6907958984375, + -249.27249145507812 + ], + "size": [ + 210, + 46 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 162 + }, + { + "name": "vae", + "type": "VAE", + "link": 76 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 142 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "VAEDecode", + "widget_ue_connectable": {} + }, + "widgets_values": [] + }, + { + "id": 63, + "type": "Note", + "pos": [ + 20, + 720 + ], + "size": [ + 370, + 120 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Video Size", + "properties": { + "widget_ue_connectable": {} + }, + "widgets_values": [ + "By default, we set the video to a smaller size for users with low VRAM. If you have enough VRAM, you can change the size" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 82, + "type": "Note", + "pos": [ + 1722.8084716796875, + -428.4427185058594 + ], + "size": [ + 370, + 120 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Acceleration tip", + "properties": { + "widget_ue_connectable": {} + }, + "widgets_values": [ + "Reduce LanPaint NumSteps for faster generation!" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 420, + 280 + ], + "size": [ + 425.4649963378906, + 225.1785888671875 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 74 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "slot_index": 0, + "links": [ + 160 + ] + } + ], + "title": "CLIP Text Encode (Positive Prompt)", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.45", + "Node name for S&R": "CLIPTextEncode", + "widget_ue_connectable": {} + }, + "widgets_values": [ + "Close up Portrait of a futuristic cowgirl wearing jeans rides a mechanical horse across a vast cyberpunk desert. The dunes shimmer with holographic projections, glowing in blues and purples. cacti and two massive moons hang low on the horizon, illuminating the dusty air. Cyberpunk western fusion, cinematic, 8K, highly detailed, atmospheric perspective, Blade Runner style." + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 69, + "type": "LoadImage", + "pos": [ + 38.325469970703125, + 964.1947021484375 + ], + "size": [ + 274.080078125, + 314 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 143 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 149 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "Masked_Load_Me_in_Loader (8).png", + "image" + ] + }, + { + "id": 65, + "type": "PrimitiveNode", + "pos": [ + 871.877197265625, + 301.2847595214844 + ], + "size": [ + 304.6064453125, + 106 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "COMBO", + "type": "COMBO", + "widget": { + "name": "sampler_name" + }, + "links": [ + 164 + ] + } + ], + "title": "Sampler", + "properties": { + "Run widget replace on values": false, + "widget_ue_connectable": {} + }, + "widgets_values": [ + "euler", + "fixed", + "" + ] + }, + { + "id": 67, + "type": "PrimitiveNode", + "pos": [ + 874.0289916992188, + 28.25248908996582 + ], + "size": [ + 312.7867736816406, + 88.04627990722656 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "widget": { + "name": "steps" + }, + "links": [ + 163 + ] + } + ], + "title": "Steps", + "properties": { + "Run widget replace on values": false, + "widget_ue_connectable": {} + }, + "widgets_values": [ + 20, + "fixed" + ] + }, + { + "id": 83, + "type": "Note", + "pos": [ + 1736.30029296875, + 592.1900024414062 + ], + "size": [ + 370, + 120 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Acceleration tip", + "properties": { + "widget_ue_connectable": {} + }, + "widgets_values": [ + "Increase LanPaint Early Stop for faster generation!" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 84, + "type": "Note", + "pos": [ + 1742.7166748046875, + 415.5233459472656 + ], + "size": [ + 370, + 120 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Partial Inpaint Strength", + "properties": { + "widget_ue_connectable": {} + }, + "widgets_values": [ + "Change Start_at_step to control how much you want inpainting to keep original picture's content" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 76, + "type": "LanPaint_KSamplerAdvanced", + "pos": [ + 1276.2220458984375, + 325.4043884277344 + ], + "size": [ + 400, + 764 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 159 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 160 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 161 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 181 + }, + { + "name": "steps", + "type": "INT", + "widget": { + "name": "steps" + }, + "link": 163 + }, + { + "name": "sampler_name", + "type": "COMBO", + "widget": { + "name": "sampler_name" + }, + "link": 164 + }, + { + "name": "scheduler", + "type": "COMBO", + "widget": { + "name": "scheduler" + }, + "link": 165 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 162 + ] + } + ], + "properties": { + "cnr_id": "LanPaint", + "ver": "1b50a90424318a457ff32a1fd5ee8a441b768b45", + "Node name for S&R": "LanPaint_KSamplerAdvanced" + }, + "widgets_values": [ + "enable", + 542259685031634, + "fixed", + 20, + 2, + "euler", + "sgm_uniform", + 7, + 10000, + "disable", + 5, + 16, + 0.15, + 1, + 15, + "Image First", + 1, + "LanPaint KSampler Adv. For more info, visit https://github.com/scraed/LanPaint. If you find it useful, please give a star ⭐️!" + ] + } + ], + "links": [ + [ + 74, + 38, + 0, + 6, + 0, + "CLIP" + ], + [ + 75, + 38, + 0, + 7, + 0, + "CLIP" + ], + [ + 76, + 39, + 0, + 8, + 1, + "VAE" + ], + [ + 110, + 37, + 0, + 54, + 0, + "MODEL" + ], + [ + 112, + 56, + 0, + 55, + 0, + "MODEL" + ], + [ + 142, + 8, + 0, + 70, + 0, + "IMAGE" + ], + [ + 143, + 69, + 0, + 71, + 0, + "IMAGE" + ], + [ + 146, + 39, + 0, + 71, + 1, + "VAE" + ], + [ + 148, + 71, + 0, + 74, + 0, + "LATENT" + ], + [ + 149, + 69, + 1, + 74, + 1, + "MASK" + ], + [ + 159, + 55, + 0, + 76, + 0, + "MODEL" + ], + [ + 160, + 6, + 0, + 76, + 1, + "CONDITIONING" + ], + [ + 161, + 7, + 0, + 76, + 2, + "CONDITIONING" + ], + [ + 162, + 76, + 0, + 8, + 0, + "LATENT" + ], + [ + 163, + 67, + 0, + 76, + 4, + "INT" + ], + [ + 164, + 65, + 0, + 76, + 5, + "COMBO" + ], + [ + 165, + 66, + 0, + 76, + 6, + "COMBO" + ], + [ + 181, + 74, + 0, + 76, + 3, + "LATENT" + ] + ], + "groups": [ + { + "id": 1, + "title": "Step1 - Load models", + "bounding": [ + 20, + -150, + 371.0310363769531, + 571.3974609375 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 2, + "title": "Step 1: Image size", + "bounding": [ + 20, + 450, + 367.5572814941406, + 222.82713317871094 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 3, + "title": "Step3 Prompt", + "bounding": [ + 410, + 210, + 445.27801513671875, + 464.2060852050781 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.48236739945295026, + "offset": [ + 442.47629449189617, + -54.01599879799346 + ] + }, + "frontendVersion": "1.25.11", + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [] + }, + "version": 0.4 +} \ No newline at end of file