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 lines272829303132337 unmodified lines4142434445467 unmodified lines5455565758596061626364656626 unmodified lines<div align="center">[[π€ <strong><span style="color:hotpink">Diffusers</span></strong> Implementation](https://github.com/lzyhha/diffusers)]</div>7 unmodified linesIf 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!## π Key FeaturesAn 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).```bashgit clone https://github.com/lzyhha/diffuserscd diffuserspip install -v -e .```### π» Diffusers Usage26 unmodified lines272829303132337 unmodified lines4142434445464748497 unmodified lines5758596061626364656626 unmodified lines<div align="center">[[π€ <strong><span style="color:hotpink">Diffusers</span></strong> Implementation](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/visualcloze)]</div>7 unmodified linesIf 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 FeaturesAn in-context learning based universal image generation framework.7 unmodified lines## π§ Installation<strong><span style="color:hotpink">You can install the official </span></strong> [diffusers](https://github.com/huggingface/diffusers.git).```bashpip install git+https://github.com/huggingface/diffusers.git```### π» Diffusers Usage
README.md+6-6