Image-to-Image
Diffusers
English
Chinese
anime
lora
qwen
qwen-image
qwen-image-edit
qwen-image-edit-2509
manga
photo2anime
Instructions to use autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download workflow.json from autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime: direct link, hf CLI and curl.
- Browser
- Download file 4.14 kB
-
https://huggingface.co/autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime/resolve/main/workflow.json
- Command line
-
hf download hf://autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime/workflow.json
-
curl -L -o workflow.json https://huggingface.co/autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime/resolve/main/workflow.json
4.14 kB
| { | |
| "3": { | |
| "inputs": { | |
| "seed": 819969892219954, | |
| "steps": 8, | |
| "cfg": 2.5, | |
| "sampler_name": "euler", | |
| "scheduler": "simple", | |
| "denoise": 1, | |
| "model": [ | |
| "75", | |
| 0 | |
| ], | |
| "positive": [ | |
| "111", | |
| 0 | |
| ], | |
| "negative": [ | |
| "110", | |
| 0 | |
| ], | |
| "latent_image": [ | |
| "112", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "KSampler", | |
| "_meta": { | |
| "title": "KSampler" | |
| } | |
| }, | |
| "8": { | |
| "inputs": { | |
| "samples": [ | |
| "3", | |
| 0 | |
| ], | |
| "vae": [ | |
| "39", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEDecode", | |
| "_meta": { | |
| "title": "VAE Decode" | |
| } | |
| }, | |
| "37": { | |
| "inputs": { | |
| "unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors", | |
| "weight_dtype": "fp8_e4m3fn" | |
| }, | |
| "class_type": "UNETLoader", | |
| "_meta": { | |
| "title": "Load Diffusion Model" | |
| } | |
| }, | |
| "38": { | |
| "inputs": { | |
| "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors", | |
| "type": "qwen_image", | |
| "device": "default" | |
| }, | |
| "class_type": "CLIPLoader", | |
| "_meta": { | |
| "title": "Load CLIP" | |
| } | |
| }, | |
| "39": { | |
| "inputs": { | |
| "vae_name": "qwen_image_vae.safetensors" | |
| }, | |
| "class_type": "VAELoader", | |
| "_meta": { | |
| "title": "Load VAE" | |
| } | |
| }, | |
| "60": { | |
| "inputs": { | |
| "filename_prefix": "ComfyUI", | |
| "images": [ | |
| "8", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "SaveImage", | |
| "_meta": { | |
| "title": "Save Image" | |
| } | |
| }, | |
| "66": { | |
| "inputs": { | |
| "shift": 3, | |
| "model": [ | |
| "391", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ModelSamplingAuraFlow", | |
| "_meta": { | |
| "title": "ModelSamplingAuraFlow" | |
| } | |
| }, | |
| "75": { | |
| "inputs": { | |
| "strength": 1, | |
| "model": [ | |
| "66", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CFGNorm", | |
| "_meta": { | |
| "title": "CFGNorm" | |
| } | |
| }, | |
| "78": { | |
| "inputs": { | |
| "image": "g9ovq6jpq8h51.jpg" | |
| }, | |
| "class_type": "LoadImage", | |
| "_meta": { | |
| "title": "Load Image" | |
| } | |
| }, | |
| "88": { | |
| "inputs": { | |
| "pixels": [ | |
| "93", | |
| 0 | |
| ], | |
| "vae": [ | |
| "39", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEEncode", | |
| "_meta": { | |
| "title": "VAE Encode" | |
| } | |
| }, | |
| "89": { | |
| "inputs": { | |
| "lora_name": "Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors", | |
| "strength_model": 1, | |
| "model": [ | |
| "37", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "LoraLoaderModelOnly", | |
| "_meta": { | |
| "title": "LoraLoaderModelOnly" | |
| } | |
| }, | |
| "93": { | |
| "inputs": { | |
| "upscale_method": "lanczos", | |
| "megapixels": 1, | |
| "image": [ | |
| "78", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ImageScaleToTotalPixels", | |
| "_meta": { | |
| "title": "Scale Image to Total Pixels" | |
| } | |
| }, | |
| "110": { | |
| "inputs": { | |
| "prompt": "", | |
| "clip": [ | |
| "38", | |
| 0 | |
| ], | |
| "vae": [ | |
| "39", | |
| 0 | |
| ], | |
| "image1": [ | |
| "93", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "TextEncodeQwenImageEditPlus", | |
| "_meta": { | |
| "title": "TextEncodeQwenImageEditPlus" | |
| } | |
| }, | |
| "111": { | |
| "inputs": { | |
| "prompt": "transform into anime", | |
| "clip": [ | |
| "38", | |
| 0 | |
| ], | |
| "vae": [ | |
| "39", | |
| 0 | |
| ], | |
| "image1": [ | |
| "93", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "TextEncodeQwenImageEditPlus", | |
| "_meta": { | |
| "title": "TextEncodeQwenImageEditPlus" | |
| } | |
| }, | |
| "112": { | |
| "inputs": { | |
| "width": 1024, | |
| "height": 1024, | |
| "batch_size": 1 | |
| }, | |
| "class_type": "EmptySD3LatentImage", | |
| "_meta": { | |
| "title": "EmptySD3LatentImage" | |
| } | |
| }, | |
| "390": { | |
| "inputs": { | |
| "prompt": "" | |
| }, | |
| "class_type": "TextEncodeQwenImageEdit", | |
| "_meta": { | |
| "title": "TextEncodeQwenImageEdit" | |
| } | |
| }, | |
| "391": { | |
| "inputs": { | |
| "lora_name": "Photo2Anime_v2_000000500.safetensors", | |
| "strength_model": 1.01, | |
| "model": [ | |
| "89", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "LoraLoaderModelOnly", | |
| "_meta": { | |
| "title": "LoraLoaderModelOnly" | |
| } | |
| } | |
| } |