| { |
| "1": { |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "{{input}}" |
| } |
| }, |
| "2": { |
| "class_type": "UNETLoader", |
| "inputs": { |
| "unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors", |
| "weight_dtype": "default" |
| } |
| }, |
| "3": { |
| "class_type": "CLIPLoader", |
| "inputs": { |
| "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors", |
| "type": "qwen_image" |
| } |
| }, |
| "4": { |
| "class_type": "VAELoader", |
| "inputs": { |
| "vae_name": "qwen_image_vae.safetensors" |
| } |
| }, |
| "5": { |
| "class_type": "TextEncodeQwenImageEditPlus", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "prompt": "Repair fine scratches and surface marks in this photograph. Preserve the people, objects, composition, facial identity, clothing, text, and original photographic character. Do not invent new objects or remove meaningful details.", |
| "vae": [ |
| "4", |
| 0 |
| ], |
| "image1": [ |
| "12", |
| 0 |
| ] |
| } |
| }, |
| "6": { |
| "class_type": "TextEncodeQwenImageEdit", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "prompt": "changed identity, altered composition, plastic skin, extra objects, missing objects, text, watermark", |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "7": { |
| "class_type": "EmptySD3LatentImage", |
| "inputs": { |
| "width": [ |
| "13", |
| 0 |
| ], |
| "height": [ |
| "13", |
| 1 |
| ], |
| "batch_size": 1 |
| } |
| }, |
| "8": { |
| "class_type": "ModelSamplingAuraFlow", |
| "inputs": { |
| "model": [ |
| "2", |
| 0 |
| ], |
| "shift": 3.1 |
| } |
| }, |
| "9": { |
| "class_type": "KSampler", |
| "inputs": { |
| "model": [ |
| "8", |
| 0 |
| ], |
| "seed": 9123, |
| "steps": 8, |
| "cfg": 4, |
| "sampler_name": "euler", |
| "scheduler": "simple", |
| "positive": [ |
| "5", |
| 0 |
| ], |
| "negative": [ |
| "6", |
| 0 |
| ], |
| "latent_image": [ |
| "7", |
| 0 |
| ], |
| "denoise": 0.65 |
| } |
| }, |
| "10": { |
| "class_type": "VAEDecode", |
| "inputs": { |
| "samples": [ |
| "9", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "11": { |
| "class_type": "SaveImage", |
| "inputs": { |
| "images": [ |
| "10", |
| 0 |
| ], |
| "filename_prefix": "prathom/remove-scratches" |
| } |
| }, |
| "12": { |
| "class_type": "ImageScaleToTotalPixels", |
| "inputs": { |
| "image": [ |
| "1", |
| 0 |
| ], |
| "upscale_method": "lanczos", |
| "megapixels": 1, |
| "resolution_steps": 16 |
| } |
| }, |
| "13": { |
| "class_type": "GetImageSize", |
| "inputs": { |
| "image": [ |
| "12", |
| 0 |
| ] |
| } |
| } |
| } |
|
|