Add Qwen I2I web UI workflow

This commit is contained in:
Morpheus
2026-09-27 14:48:27 +00:00
parent 700a2d86e2
commit bcfcefbb3f
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ Converts any supplied reference image into a photorealistic image of the same su
The workflow uses the installed Qwen Image 2.1 stack and the flattened `images.image_1` reference input required by the API workflow.
- `workflow.json` — API-format workflow.
- `ui-workflow.json` — native ComfyUI web-editor workflow. Load this file in ComfyUI for an editable graph.
## Planned optimization matrix
+28
View File
@@ -0,0 +1,28 @@
{
"id": "qwen-image-2.1-photorealistic-i2i-ui",
"revision": 0,
"last_node_id": 15,
"last_link_id": 18,
"nodes": [
{"id":1,"type":"UNETLoader","pos":[-900,0],"size":[360,110],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[1]}],"properties":{"Node name for S&R":"UNETLoader"},"widgets_values":["qwen_image_2.1_int8_convrot.safetensors","default"]},
{"id":2,"type":"CLIPLoader","pos":[-900,180],"size":[360,150],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[2]}],"properties":{"Node name for S&R":"CLIPLoader"},"widgets_values":["qwen3vl_8b_w4a8.safetensors","qwen_image","default"]},
{"id":3,"type":"VAELoader","pos":[-900,390],"size":[360,110],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"VAE","type":"VAE","links":[3,4]}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["qwen_image_2.1_vae_bf16.safetensors"]},
{"id":4,"type":"LoadImage","pos":[-900,600],"size":[360,420],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[5]}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["character_reference.png"]},
{"id":5,"type":"ResizeAndPadImage","pos":[-420,620],"size":[320,190],"flags":{},"order":4,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":5}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[6]}],"properties":{"Node name for S&R":"ResizeAndPadImage"},"widgets_values":[576,1024,"white","lanczos"]},
{"id":6,"type":"QwenImage21Cache","pos":[-420,0],"size":[300,130],"flags":{},"order":5,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":1}],"outputs":[{"name":"MODEL","type":"MODEL","links":[7,8]}],"properties":{"Node name for S&R":"QwenImage21Cache"},"widgets_values":["auto","int8"]},
{"id":7,"type":"TextEncodeQwenImage21","pos":[0,220],"size":[650,470],"flags":{},"order":6,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":2},{"name":"vae","type":"VAE","link":3},{"name":"image_1","type":"IMAGE","link":6}],"outputs":[{"name":"positive","type":"CONDITIONING","links":[9]},{"name":"negative","type":"CONDITIONING","links":[10]},{"name":"latent","type":"LATENT","links":[11]}],"properties":{"Node name for S&R":"TextEncodeQwenImage21"},"widgets_values":["Transform the supplied reference image into a photorealistic image of the same subject. Infer identity, facial features, skin tone, hairstyle, clothing, accessories, colors, pose, body proportions, composition, and framing directly from the reference. Preserve those visual attributes faithfully while replacing the original rendering style with natural human anatomy, realistic skin and hair texture, physically accurate materials, believable fabric and surface detail, natural hands and fingers, cinematic soft light, realistic shadows, coherent perspective, premium editorial photography, high dynamic range, photorealistic, highly detailed. Do not redesign, restyle, substitute, add, remove, mirror, or crop the subject. No text or logos.","different person, changed identity, changed face, changed hairstyle, changed clothing, changed colors, altered accessories, changed pose, different composition, extra person, duplicate person, extra limbs, malformed hands, fused fingers, distorted anatomy, cropped head, cropped feet, mirrored image, cartoon, illustration, anime, CGI, plastic skin, waxy skin, blurry, low detail, text, logo, watermark",0]},
{"id":8,"type":"KSamplerSelect","pos":[760,0],"size":[280,90],"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[{"name":"SAMPLER","type":"SAMPLER","links":[12]}],"properties":{"Node name for S&R":"KSamplerSelect"},"widgets_values":["euler_cfg_pp"]},
{"id":9,"type":"BasicScheduler","pos":[760,150],"size":[300,150],"flags":{},"order":8,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":7}],"outputs":[{"name":"SIGMAS","type":"SIGMAS","links":[13]}],"properties":{"Node name for S&R":"BasicScheduler"},"widgets_values":["beta",50,1]},
{"id":10,"type":"RandomNoise","pos":[760,360],"size":[280,90],"flags":{},"order":9,"mode":0,"inputs":[],"outputs":[{"name":"NOISE","type":"NOISE","links":[14]}],"properties":{"Node name for S&R":"RandomNoise"},"widgets_values":[20260921]},
{"id":11,"type":"CFGGuider","pos":[1120,120],"size":[300,150],"flags":{},"order":10,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":8},{"name":"positive","type":"CONDITIONING","link":9},{"name":"negative","type":"CONDITIONING","link":10}],"outputs":[{"name":"GUIDER","type":"GUIDER","links":[15]}],"properties":{"Node name for S&R":"CFGGuider"},"widgets_values":[3.5]},
{"id":12,"type":"SamplerCustomAdvanced","pos":[1480,120],"size":[320,220],"flags":{},"order":11,"mode":0,"inputs":[{"name":"noise","type":"NOISE","link":14},{"name":"guider","type":"GUIDER","link":15},{"name":"sampler","type":"SAMPLER","link":12},{"name":"sigmas","type":"SIGMAS","link":13},{"name":"latent_image","type":"LATENT","link":11}],"outputs":[{"name":"output","type":"LATENT","links":[16]}],"properties":{"Node name for S&R":"SamplerCustomAdvanced"},"widgets_values":[]},
{"id":13,"type":"VAEDecode","pos":[1850,120],"size":[260,110],"flags":{},"order":12,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":16},{"name":"vae","type":"VAE","link":4}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[17]}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},
{"id":14,"type":"ResizeAndPadImage","pos":[2160,120],"size":[320,190],"flags":{},"order":13,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":17}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[18]}],"properties":{"Node name for S&R":"ResizeAndPadImage"},"widgets_values":[1080,1920,"white","lanczos"]},
{"id":15,"type":"SaveImage","pos":[2540,120],"size":[320,110],"flags":{},"order":14,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":18}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["fluxExperiments/imageEdit/qwen_i2i"]}
],
"links": [[1,1,0,6,0,"MODEL"],[2,2,0,7,0,"CLIP"],[3,3,0,7,1,"VAE"],[4,3,0,13,1,"VAE"],[5,4,0,5,0,"IMAGE"],[6,5,0,7,2,"IMAGE"],[7,6,0,9,0,"MODEL"],[8,6,0,11,0,"MODEL"],[9,7,0,11,1,"CONDITIONING"],[10,7,1,11,2,"CONDITIONING"],[11,7,2,12,4,"LATENT"],[12,8,0,12,2,"SAMPLER"],[13,9,0,12,3,"SIGMAS"],[14,10,0,12,0,"NOISE"],[15,11,0,12,1,"GUIDER"],[16,12,0,13,0,"LATENT"],[17,13,0,14,0,"IMAGE"],[18,14,0,15,0,"IMAGE"]],
"groups": [],
"config": {},
"extra": {"note":"Qwen Image 2.1 photorealistic I2I; current best Q-I2I-34; 1080x1920 output"},
"version": 0.4
}