Image-to-Image
Diffusers
Safetensors
English
QwenImageEditPlusPipeline
image-edit
zen
zenlm
hanzo
image-editing
diffusion
Instructions to use zenlm/zen-image-edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zenlm/zen-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("zenlm/zen-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
| { | |
| "architectures": [ | |
| "QwenImageEditForConditionalGeneration" | |
| ], | |
| "model_type": "image-edit", | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.44.2", | |
| "thinking_tokens": 256000, | |
| "_name_or_path": "zenlm/zen-image-edit", | |
| "_base_model": "zenlm/zen-image-edit", | |
| "vision_config": { | |
| "hidden_size": 1024, | |
| "image_size": 1024, | |
| "num_hidden_layers": 24, | |
| "patch_size": 14 | |
| }, | |
| "text_config": { | |
| "vocab_size": 151936, | |
| "hidden_size": 3584, | |
| "num_hidden_layers": 32, | |
| "max_position_embeddings": 32768 | |
| } | |
| } | |