Image-to-Image
Diffusers
Safetensors
VisualClozePipeline
text-to-image
flux
lora
in-context-learning
universal-image-generation
ai-tools
Instructions to use VisualCloze/VisualClozePipeline-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use VisualCloze/VisualClozePipeline-384 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("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("VisualCloze/VisualClozePipeline-384") 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
- Local Apps Settings
- Draw Things
Update README.md
Browse files26 unmodified lines27282930303132337 unmodified lines4142434445464748497 unmodified lines57585957606162606162636364656626 unmodified lines
<div align="center">
[[🤗 <strong><span style="color:hotpink">Diffusers</span></strong> Implementation](https://github.com/lzyhha/diffusers)][[🤗 <strong><span style="color:hotpink">Diffusers</span></strong> Implementation](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/visualcloze)]
</div>
7 unmodified lines
If you find VisualCloze is helpful, please consider to star ⭐ the [<strong><span style="color:hotpink">Github Repo</span></strong>](https://github.com/lzyhha/VisualCloze). Thanks!
## 📰 News- [2025-5-15] 🤗🤗🤗 VisualCloze has been merged into the [<strong><span style="color:hotpink">official pipelines of diffusers</span></strong>](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/visualcloze). For usage guidance, please refer to the [Model Card](https://huggingface.co/VisualCloze/VisualClozePipeline-384).
## 🌠 Key Features
An in-context learning based universal image generation framework. 7 unmodified lines
## 🔧 Installation
<strong><span style="color:hotpink">You still need to install our modified version of</span></strong> [diffusers](https://github.com/lzyhha/diffusers).<strong><span style="color:hotpink">You can install the official </span></strong> [diffusers](https://github.com/huggingface/diffusers.git).
```bashgit clone https://github.com/lzyhha/diffusers
cd diffuserspip install -v -e .pip install git+https://github.com/huggingface/diffusers.git```
### 💻 Diffusers UsageREADME.md+6-6