| { |
| "1": { |
| "class_type": "UNETLoader", |
| "inputs": { |
| "unet_name": "qwen_image_edit_2511_bf16.safetensors", |
| "weight_dtype": "default" |
| } |
| }, |
| "10": { |
| "_meta": { |
| "title": "Steps (lightning)" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 4 |
| } |
| }, |
| "11": { |
| "_meta": { |
| "title": "CFG (quality)" |
| }, |
| "class_type": "PrimitiveFloat", |
| "inputs": { |
| "value": 3.0 |
| } |
| }, |
| "12": { |
| "_meta": { |
| "title": "CFG (lightning)" |
| }, |
| "class_type": "PrimitiveFloat", |
| "inputs": { |
| "value": 1.0 |
| } |
| }, |
| "13": { |
| "class_type": "ModelSamplingAuraFlow", |
| "inputs": { |
| "model": [ |
| "6", |
| 0 |
| ], |
| "shift": 3.1 |
| } |
| }, |
| "14": { |
| "class_type": "CFGNorm", |
| "inputs": { |
| "model": [ |
| "13", |
| 0 |
| ], |
| "pre_cfg": false, |
| "strength": 1 |
| } |
| }, |
| "15": { |
| "_meta": { |
| "title": "upscale_input_to_max_size" |
| }, |
| "class_type": "PrimitiveBoolean", |
| "inputs": { |
| "value": true |
| } |
| }, |
| "16": { |
| "_meta": { |
| "title": "downscale_input_to_max_size" |
| }, |
| "class_type": "PrimitiveBoolean", |
| "inputs": { |
| "value": true |
| } |
| }, |
| "2": { |
| "_meta": { |
| "title": "LoRA: Lightning 4 steps" |
| }, |
| "class_type": "LoraLoaderModelOnly", |
| "inputs": { |
| "lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", |
| "model": [ |
| "1", |
| 0 |
| ], |
| "strength_model": 1 |
| } |
| }, |
| "20": { |
| "_meta": { |
| "title": "Main Image" |
| }, |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "test.jpg" |
| } |
| }, |
| "21": { |
| "_meta": { |
| "title": "Input max size (main)" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 1536 |
| } |
| }, |
| "22": { |
| "_meta": { |
| "title": "native edge (main)" |
| }, |
| "class_type": "MathExpression|pysssss", |
| "inputs": { |
| "a": [ |
| "20", |
| 0 |
| ], |
| "expression": "max(a.width, a.height)" |
| } |
| }, |
| "23": { |
| "_meta": { |
| "title": "upscaled edge (main)" |
| }, |
| "class_type": "MathExpression|pysssss", |
| "inputs": { |
| "a": [ |
| "20", |
| 0 |
| ], |
| "c": [ |
| "21", |
| 0 |
| ], |
| "expression": "max(a.width, a.height, c)" |
| } |
| }, |
| "24": { |
| "_meta": { |
| "title": "apply upscale (main)" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "22", |
| 0 |
| ], |
| "on_true": [ |
| "23", |
| 0 |
| ], |
| "switch": [ |
| "15", |
| 0 |
| ] |
| } |
| }, |
| "25": { |
| "_meta": { |
| "title": "downscaled edge (main)" |
| }, |
| "class_type": "MathExpression|pysssss", |
| "inputs": { |
| "a": [ |
| "24", |
| 0 |
| ], |
| "c": [ |
| "21", |
| 0 |
| ], |
| "expression": "min(a, c)" |
| } |
| }, |
| "26": { |
| "_meta": { |
| "title": "apply downscale (main)" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "24", |
| 0 |
| ], |
| "on_true": [ |
| "25", |
| 0 |
| ], |
| "switch": [ |
| "16", |
| 0 |
| ] |
| } |
| }, |
| "27": { |
| "_meta": { |
| "title": "Main image config" |
| }, |
| "class_type": "QwenEditConfigPreparer", |
| "inputs": { |
| "image": [ |
| "20", |
| 0 |
| ], |
| "ref_crop": "pad", |
| "ref_longest_edge": [ |
| "26", |
| 0 |
| ], |
| "ref_main_image": true, |
| "ref_upscale": "lanczos", |
| "to_ref": true, |
| "to_vl": true, |
| "vl_crop": "center", |
| "vl_resize": true, |
| "vl_target_size": 384, |
| "vl_upscale": "bicubic" |
| } |
| }, |
| "3": { |
| "class_type": "CLIPLoader", |
| "inputs": { |
| "clip_name": "qwen_2.5_vl_7b.safetensors", |
| "device": "default", |
| "type": "qwen_image" |
| } |
| }, |
| "31": { |
| "_meta": { |
| "title": "Input max size (ref 2)" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 1024 |
| } |
| }, |
| "4": { |
| "class_type": "VAELoader", |
| "inputs": { |
| "vae_name": "qwen_image_vae.safetensors" |
| } |
| }, |
| "40": { |
| "_meta": { |
| "title": "Qwen Edit Encode (prompt here)" |
| }, |
| "class_type": "TextEncodeQwenImageEditPlusCustom_lrzjason", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "configs": [ |
| "27", |
| 0 |
| ], |
| "instruction": "Describe the key features of the input image (color, shape, size, texture, objects, background), then explain how the user's text instruction should alter or modify the image. Generate a new image that meets the user's requirements while maintaining consistency with the original input where appropriate.", |
| "prompt": "", |
| "return_full_refs_cond": true, |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "41": { |
| "class_type": "QwenEditOutputExtractor", |
| "inputs": { |
| "custom_output": [ |
| "40", |
| 2 |
| ] |
| } |
| }, |
| "42": { |
| "_meta": { |
| "title": "Negative (zeroed)" |
| }, |
| "class_type": "ConditioningZeroOut", |
| "inputs": { |
| "conditioning": [ |
| "40", |
| 0 |
| ] |
| } |
| }, |
| "43": { |
| "class_type": "KSampler", |
| "inputs": { |
| "cfg": [ |
| "8", |
| 0 |
| ], |
| "denoise": 1, |
| "latent_image": [ |
| "40", |
| 1 |
| ], |
| "model": [ |
| "14", |
| 0 |
| ], |
| "negative": [ |
| "42", |
| 0 |
| ], |
| "positive": [ |
| "40", |
| 0 |
| ], |
| "sampler_name": "euler", |
| "scheduler": "simple", |
| "seed": 42, |
| "steps": [ |
| "7", |
| 0 |
| ] |
| } |
| }, |
| "44": { |
| "class_type": "VAEDecode", |
| "inputs": { |
| "samples": [ |
| "43", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "45": { |
| "_meta": { |
| "title": "Remove padding" |
| }, |
| "class_type": "CropWithPadInfo", |
| "inputs": { |
| "image": [ |
| "44", |
| 0 |
| ], |
| "pad_info": [ |
| "41", |
| 0 |
| ] |
| } |
| }, |
| "46": { |
| "_meta": { |
| "title": "upscale_output_to_selected_size" |
| }, |
| "class_type": "PrimitiveBoolean", |
| "inputs": { |
| "value": false |
| } |
| }, |
| "47": { |
| "_meta": { |
| "title": "Selected output size" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 2048 |
| } |
| }, |
| "48": { |
| "_meta": { |
| "title": "Scale output" |
| }, |
| "class_type": "ImageScaleToMaxDimension", |
| "inputs": { |
| "image": [ |
| "45", |
| 0 |
| ], |
| "largest_size": [ |
| "47", |
| 0 |
| ], |
| "upscale_method": "lanczos" |
| } |
| }, |
| "49": { |
| "_meta": { |
| "title": "Output size switch" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "45", |
| 0 |
| ], |
| "on_true": [ |
| "48", |
| 0 |
| ], |
| "switch": [ |
| "46", |
| 0 |
| ] |
| } |
| }, |
| "5": { |
| "_meta": { |
| "title": "Lightning Mode (fast)" |
| }, |
| "class_type": "PrimitiveBoolean", |
| "inputs": { |
| "value": true |
| } |
| }, |
| "50": { |
| "class_type": "SaveImage", |
| "inputs": { |
| "filename_prefix": "qwen-edit-turbo-v3", |
| "images": [ |
| "49", |
| 0 |
| ] |
| } |
| }, |
| "6": { |
| "_meta": { |
| "title": "Model switch" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "1", |
| 0 |
| ], |
| "on_true": [ |
| "2", |
| 0 |
| ], |
| "switch": [ |
| "5", |
| 0 |
| ] |
| } |
| }, |
| "7": { |
| "_meta": { |
| "title": "Steps switch" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "9", |
| 0 |
| ], |
| "on_true": [ |
| "10", |
| 0 |
| ], |
| "switch": [ |
| "5", |
| 0 |
| ] |
| } |
| }, |
| "8": { |
| "_meta": { |
| "title": "CFG switch" |
| }, |
| "class_type": "ComfySwitchNode", |
| "inputs": { |
| "on_false": [ |
| "11", |
| 0 |
| ], |
| "on_true": [ |
| "12", |
| 0 |
| ], |
| "switch": [ |
| "5", |
| 0 |
| ] |
| } |
| }, |
| "9": { |
| "_meta": { |
| "title": "Steps (quality)" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 12 |
| } |
| } |
| } |
|
|