Instructions to use A532070/Qwen-Image-Edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use A532070/Qwen-Image-Edit 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("A532070/Qwen-Image-Edit", dtype=torch.bfloat16, device_map="cuda") 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] - Notebooks
- Google Colab
- Kaggle
Download model_index.json from A532070/Qwen-Image-Edit: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/A532070/Qwen-Image-Edit/resolve/main/model_index.json
- Command line
-
hf download hf://A532070/Qwen-Image-Edit/model_index.json
-
curl -L -o model_index.json https://huggingface.co/A532070/Qwen-Image-Edit/resolve/main/model_index.json
512 Bytes
| { | |
| "_class_name": "QwenImageEditPipeline", | |
| "_diffusers_version": "0.35.0.dev0", | |
| "processor": [ | |
| "transformers", | |
| "Qwen2VLProcessor" | |
| ], | |
| "scheduler": [ | |
| "diffusers", | |
| "FlowMatchEulerDiscreteScheduler" | |
| ], | |
| "text_encoder": [ | |
| "transformers", | |
| "Qwen2_5_VLForConditionalGeneration" | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "Qwen2Tokenizer" | |
| ], | |
| "transformer": [ | |
| "diffusers", | |
| "QwenImageTransformer2DModel" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKLQwenImage" | |
| ] | |
| } | |