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
fix: update _base_model to zenlm/zen-image-edit
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
"transformers_version": "4.44.2",
|
| 8 |
"thinking_tokens": 256000,
|
| 9 |
"_name_or_path": "zenlm/zen-image-edit",
|
| 10 |
-
"_base_model": "
|
| 11 |
"vision_config": {
|
| 12 |
"hidden_size": 1024,
|
| 13 |
"image_size": 1024,
|
|
@@ -20,4 +20,4 @@
|
|
| 20 |
"num_hidden_layers": 32,
|
| 21 |
"max_position_embeddings": 32768
|
| 22 |
}
|
| 23 |
-
}
|
|
|
|
| 7 |
"transformers_version": "4.44.2",
|
| 8 |
"thinking_tokens": 256000,
|
| 9 |
"_name_or_path": "zenlm/zen-image-edit",
|
| 10 |
+
"_base_model": "zenlm/zen-image-edit",
|
| 11 |
"vision_config": {
|
| 12 |
"hidden_size": 1024,
|
| 13 |
"image_size": 1024,
|
|
|
|
| 20 |
"num_hidden_layers": 32,
|
| 21 |
"max_position_embeddings": 32768
|
| 22 |
}
|
| 23 |
+
}
|