Image-to-Image
Diffusers
Safetensors
VisualClozePipeline
text-to-image
flux
lora
in-context-learning
universal-image-generation
ai-tools
Instructions to use VisualCloze/VisualClozePipeline-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use VisualCloze/VisualClozePipeline-512 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-512") 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 files49 unmodified lines50515253545549 unmodified lines🔥 Examples are shown in the [project page](https://visualcloze.github.io/).## 🔧 Installation<strong><span style="color:hotpink">You still need to install our modified version of</span></strong> [diffusers](https://github.com/lzyhha/diffusers).49 unmodified lines505152535455565749 unmodified lines🔥 Examples are shown in the [project page](https://visualcloze.github.io/).If you find VisualCloze is helpful, please consider to star ⭐ the [Github Repo](https://github.com/lzyhha/VisualCloze). Thanks!## 🔧 Installation<strong><span style="color:hotpink">You still need to install our modified version of</span></strong> [diffusers](https://github.com/lzyhha/diffusers).
README.md+2