From a321551449fd9479c251b763de505286ff3fa1a8 Mon Sep 17 00:00:00 2001 From: Morpheus Date: Tue, 22 Sep 2026 17:09:06 +0000 Subject: [PATCH] Add optimized Qwen Image 2.1 spaceship canteen baseline --- .../README.md | 24 + .../ui-workflow.json | 656 ++++++++++++++++++ .../workflow.json | 153 ++++ 3 files changed, 833 insertions(+) create mode 100644 optimized/text-to-image/qwen-image-2.1-spaceship-canteen/README.md create mode 100644 optimized/text-to-image/qwen-image-2.1-spaceship-canteen/ui-workflow.json create mode 100644 optimized/text-to-image/qwen-image-2.1-spaceship-canteen/workflow.json diff --git a/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/README.md b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/README.md new file mode 100644 index 0000000..eb4c361 --- /dev/null +++ b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/README.md @@ -0,0 +1,24 @@ +# Qwen Image 2.1 — spaceship canteen baseline + +Qwen Image 2.1 text-to-image workflow using the same spaceship-canteen prompt as the Flux.2 Klein baseline. + +## Settings + +- Model: qwen_image_2.1_int8_convrot.safetensors +- Text encoder: qwen3vl_8b_w4a8.safetensors +- VAE: qwen_image_2.1_vae_bf16.safetensors +- Internal generation: 1024×1024 square (the Qwen 2.1 text encoder provides a square latent) +- Final output: 1920×1088, 16:9, center-cropped with Lanczos +- Sampler: euler_cfg_pp +- Scheduler: simple +- Steps: 12 +- CFG: 2.5 +- Seed: 20260920 +- Warm generation time: approximately 22 seconds on the server RTX 3070 + +The positive and negative prompts are intentionally identical to the Flux baseline for controlled comparison. The final crop removes the white side bands produced by padding the square Qwen output. + +Files: +- workflow.json — API format +- ui-workflow.json — ComfyUI web UI format + diff --git a/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/ui-workflow.json b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/ui-workflow.json new file mode 100644 index 0000000..f2935b7 --- /dev/null +++ b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/ui-workflow.json @@ -0,0 +1,656 @@ +{ + "id": "qwen-image-2.1-spaceship-canteen-ui", + "revision": 0, + "last_node_id": 13, + "last_link_id": 17, + "nodes": [ + { + "id": 1, + "type": "UNETLoader", + "pos": [ + -760, + 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": [ + -760, + 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": [ + -760, + 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": "QwenImage21Cache", + "pos": [ + -320, + 0 + ], + "size": [ + 300, + 130 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 5, + 6 + ] + } + ], + "properties": { + "Node name for S&R": "QwenImage21Cache" + }, + "widgets_values": [ + "auto", + "int8" + ] + }, + { + "id": 5, + "type": "TextEncodeQwenImage21", + "pos": [ + -320, + 220 + ], + "size": [ + 520, + 420 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 2 + }, + { + "name": "vae", + "type": "VAE", + "link": 3 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 7 + ] + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 8 + ] + }, + { + "name": "latent", + "type": "LATENT", + "links": [ + 9 + ] + } + ], + "properties": { + "Node name for S&R": "TextEncodeQwenImage21" + }, + "widgets_values": [ + "Hyper-realistic cinematic documentary photograph inside the canteen of a deep-space exploration spaceship, a spacious lived-in dining hall with brushed titanium bulkheads, warm amber practical lights, cool cyan window spill, a huge panoramic observation window showing a blue nebula, distant stars and the curved limb of a planet, two adult human crew members in the foreground seated across from one another at a scratched metal table playing a tense friendly game of cards, a beautiful adult woman with natural facial features, expressive eyes, shoulder-length dark wavy hair, a fitted practical navy flight jacket over a cream knit top, subtle silver earrings and realistic skin texture, leaning forward holding a playing card, a muscular adult mixed-race man with short curly hair, trimmed beard, broad shoulders and powerful forearms, wearing a charcoal utility shirt with rolled sleeves and a worn leather wristband, studying the table with a half-smile, anatomically correct five-finger hands, orderly readable playing cards and coherent poker chips, steaming coffee, a glass of amber fruit drink, metal cutlery, ceramic bowls, half-eaten noodles, bread, fruit, condiments and scattered crumbs on the table, background crew in varied practical uniforms, one person using a wall-mounted food synthesizer, another carrying a tray, a cook behind a compact galley counter, illuminated panels with abstract non-legible interface graphics, utensils hanging from magnetic rails, food printers, refrigeration drawers, mugs secured in holders, subtle condensation, reflections in polished metal, believable spaceship engineering, cables and access panels, small personal photographs and mission patches, natural candid interaction, rich environmental storytelling, carefully composed wide medium shot at eye level, 35mm cinema lens, realistic perspective, moderate depth of field with both main players and the busy canteen readable, soft volumetric atmosphere, practical motivated lighting, gentle rim light on hair and shoulders, bounced fill light on faces, subtle lens bloom, restrained anamorphic horizontal flares, realistic film grain, high dynamic range, accurate color science, crisp micro-detail, premium science-fiction production design, photorealistic, ultra-detailed, physically plausible materials, cinematic lighting, no text or logos", + "cartoon, illustration, anime, CGI look, plastic skin, waxy faces, beauty filter, over-smoothed skin, duplicate people, extra limbs, missing limbs, malformed hands, fused fingers, unreadable cards, floating objects, distorted faces, crossed eyes, asymmetrical eyes, bad anatomy, warped perspective, overexposure, crushed blacks, muddy detail, extreme saturation, heavy vignette, excessive bloom, excessive lens flare, motion blur, low resolution, artifacts, watermark, caption, subtitle, logo, illegible text, celebrity likeness", + 1024 + ] + }, + { + "id": 6, + "type": "KSamplerSelect", + "pos": [ + 270, + 0 + ], + "size": [ + 280, + 90 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 10 + ] + } + ], + "properties": { + "Node name for S&R": "KSamplerSelect" + }, + "widgets_values": [ + "euler_cfg_pp" + ] + }, + { + "id": 7, + "type": "BasicScheduler", + "pos": [ + 270, + 150 + ], + "size": [ + 300, + 150 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 5 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 11 + ] + } + ], + "properties": { + "Node name for S&R": "BasicScheduler" + }, + "widgets_values": [ + "simple", + 12, + 1 + ] + }, + { + "id": 8, + "type": "RandomNoise", + "pos": [ + 270, + 360 + ], + "size": [ + 280, + 90 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 12 + ] + } + ], + "properties": { + "Node name for S&R": "RandomNoise" + }, + "widgets_values": [ + 20260920 + ] + }, + { + "id": 9, + "type": "CFGGuider", + "pos": [ + 650, + 120 + ], + "size": [ + 300, + 150 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 6 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 7 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 8 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 13 + ] + } + ], + "properties": { + "Node name for S&R": "CFGGuider" + }, + "widgets_values": [ + 2.5 + ] + }, + { + "id": 10, + "type": "SamplerCustomAdvanced", + "pos": [ + 1020, + 120 + ], + "size": [ + 320, + 220 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 12 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 13 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 10 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 11 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 9 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 14 + ] + } + ], + "properties": { + "Node name for S&R": "SamplerCustomAdvanced" + }, + "widgets_values": [] + }, + { + "id": 11, + "type": "VAEDecode", + "pos": [ + 1410, + 120 + ], + "size": [ + 260, + 110 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 14 + }, + { + "name": "vae", + "type": "VAE", + "link": 4 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 15 + ] + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 12, + "type": "SaveImage", + "pos": [ + 2140, + 120 + ], + "size": [ + 300, + 110 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 17 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [] + } + ], + "properties": { + "Node name for S&R": "SaveImage" + }, + "widgets_values": [ + "fluxExperiments/qwenImage21/scene_baseline" + ] + }, + { + "id": 13, + "type": "ImageScale", + "pos": [ + 1740, + 120 + ], + "size": [ + 320, + 190 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 15 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 17 + ] + } + ], + "properties": { + "Node name for S&R": "ImageScale" + }, + "widgets_values": [ + "lanczos", + 1920, + 1088, + "center" + ] + } + ], + "links": [ + [ + 1, + 1, + 0, + 4, + 0, + "MODEL" + ], + [ + 2, + 2, + 0, + 5, + 0, + "CLIP" + ], + [ + 3, + 3, + 0, + 5, + 1, + "VAE" + ], + [ + 4, + 3, + 0, + 11, + 1, + "VAE" + ], + [ + 5, + 4, + 0, + 7, + 0, + "MODEL" + ], + [ + 6, + 4, + 0, + 9, + 0, + "MODEL" + ], + [ + 7, + 5, + 0, + 9, + 1, + "CONDITIONING" + ], + [ + 8, + 5, + 1, + 9, + 2, + "CONDITIONING" + ], + [ + 9, + 5, + 2, + 10, + 4, + "LATENT" + ], + [ + 10, + 6, + 0, + 10, + 2, + "SAMPLER" + ], + [ + 11, + 7, + 0, + 10, + 3, + "SIGMAS" + ], + [ + 12, + 8, + 0, + 10, + 0, + "NOISE" + ], + [ + 13, + 9, + 0, + 10, + 1, + "GUIDER" + ], + [ + 14, + 10, + 0, + 11, + 0, + "LATENT" + ], + [ + 15, + 11, + 0, + 13, + 0, + "IMAGE" + ], + [ + 17, + 13, + 0, + 12, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "note": "Qwen Image 2.1 spaceship-canteen baseline; exact Flux prompt; 1920x1088 output; 1024 square generation center-cropped to 16:9" + }, + "version": 0.4 +} diff --git a/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/workflow.json b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/workflow.json new file mode 100644 index 0000000..5e2c048 --- /dev/null +++ b/optimized/text-to-image/qwen-image-2.1-spaceship-canteen/workflow.json @@ -0,0 +1,153 @@ +{ + "1": { + "class_type": "UNETLoader", + "inputs": { + "unet_name": "qwen_image_2.1_int8_convrot.safetensors", + "weight_dtype": "default" + } + }, + "2": { + "class_type": "CLIPLoader", + "inputs": { + "clip_name": "qwen3vl_8b_w4a8.safetensors", + "type": "qwen_image", + "device": "default" + } + }, + "3": { + "class_type": "VAELoader", + "inputs": { + "vae_name": "qwen_image_2.1_vae_bf16.safetensors" + } + }, + "4": { + "class_type": "QwenImage21Cache", + "inputs": { + "model": [ + "1", + 0 + ], + "device": "auto", + "dtype": "int8" + } + }, + "5": { + "class_type": "TextEncodeQwenImage21", + "inputs": { + "clip": [ + "2", + 0 + ], + "prompt": "Hyper-realistic cinematic documentary photograph inside the canteen of a deep-space exploration spaceship, a spacious lived-in dining hall with brushed titanium bulkheads, warm amber practical lights, cool cyan window spill, a huge panoramic observation window showing a blue nebula, distant stars and the curved limb of a planet, two adult human crew members in the foreground seated across from one another at a scratched metal table playing a tense friendly game of cards, a beautiful adult woman with natural facial features, expressive eyes, shoulder-length dark wavy hair, a fitted practical navy flight jacket over a cream knit top, subtle silver earrings and realistic skin texture, leaning forward holding a playing card, a muscular adult mixed-race man with short curly hair, trimmed beard, broad shoulders and powerful forearms, wearing a charcoal utility shirt with rolled sleeves and a worn leather wristband, studying the table with a half-smile, anatomically correct five-finger hands, orderly readable playing cards and coherent poker chips, steaming coffee, a glass of amber fruit drink, metal cutlery, ceramic bowls, half-eaten noodles, bread, fruit, condiments and scattered crumbs on the table, background crew in varied practical uniforms, one person using a wall-mounted food synthesizer, another carrying a tray, a cook behind a compact galley counter, illuminated panels with abstract non-legible interface graphics, utensils hanging from magnetic rails, food printers, refrigeration drawers, mugs secured in holders, subtle condensation, reflections in polished metal, believable spaceship engineering, cables and access panels, small personal photographs and mission patches, natural candid interaction, rich environmental storytelling, carefully composed wide medium shot at eye level, 35mm cinema lens, realistic perspective, moderate depth of field with both main players and the busy canteen readable, soft volumetric atmosphere, practical motivated lighting, gentle rim light on hair and shoulders, bounced fill light on faces, subtle lens bloom, restrained anamorphic horizontal flares, realistic film grain, high dynamic range, accurate color science, crisp micro-detail, premium science-fiction production design, photorealistic, ultra-detailed, physically plausible materials, cinematic lighting, no text or logos", + "negative_prompt": "cartoon, illustration, anime, CGI look, plastic skin, waxy faces, beauty filter, over-smoothed skin, duplicate people, extra limbs, missing limbs, malformed hands, fused fingers, unreadable cards, floating objects, distorted faces, crossed eyes, asymmetrical eyes, bad anatomy, warped perspective, overexposure, crushed blacks, muddy detail, extreme saturation, heavy vignette, excessive bloom, excessive lens flare, motion blur, low resolution, artifacts, watermark, caption, subtitle, logo, illegible text, celebrity likeness", + "resolution": 1024, + "vae": [ + "3", + 0 + ] + } + }, + "6": { + "class_type": "KSamplerSelect", + "inputs": { + "sampler_name": "euler_cfg_pp" + } + }, + "7": { + "class_type": "BasicScheduler", + "inputs": { + "model": [ + "4", + 0 + ], + "scheduler": "simple", + "steps": 12, + "denoise": 1 + } + }, + "8": { + "class_type": "RandomNoise", + "inputs": { + "noise_seed": 20260920 + } + }, + "9": { + "class_type": "CFGGuider", + "inputs": { + "model": [ + "4", + 0 + ], + "positive": [ + "5", + 0 + ], + "negative": [ + "5", + 1 + ], + "cfg": 2.5 + } + }, + "10": { + "class_type": "SamplerCustomAdvanced", + "inputs": { + "noise": [ + "8", + 0 + ], + "guider": [ + "9", + 0 + ], + "sampler": [ + "6", + 0 + ], + "sigmas": [ + "7", + 0 + ], + "latent_image": [ + "5", + 2 + ] + } + }, + "11": { + "class_type": "VAEDecode", + "inputs": { + "samples": [ + "10", + 0 + ], + "vae": [ + "3", + 0 + ] + } + }, + "12": { + "class_type": "SaveImage", + "inputs": { + "images": [ + "13", + 0 + ], + "filename_prefix": "fluxExperiments/qwenImage21/scene_baseline" + } + }, + "13": { + "class_type": "ImageScale", + "inputs": { + "image": [ + "11", + 0 + ], + "upscale_method": "lanczos", + "width": 1920, + "height": 1088, + "crop": "center" + } + } +}