Instructions to use bardofcodes/pattern_analogies with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bardofcodes/pattern_analogies 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("bardofcodes/pattern_analogies", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,7 +36,7 @@ One single flow of Versatile Diffusion contains a VAE, a diffuser, and a context
|
|
| 36 |
<img src="https://huggingface.co/bardofcodes/pattern_analogies/resolve/main/assets/arch_1.png" width="99%">
|
| 37 |
</p>
|
| 38 |
<p align="center">
|
| 39 |
-
<img src="https://huggingface.co/bardofcodes/pattern_analogies/resolve/main/assets/
|
| 40 |
</p>
|
| 41 |
|
| 42 |
- **Developed by:** Aditya Ganeshan, Thibault Groueix, Paul Guerrero, Radomír Měch, Matthew Fisher and Daniel Ritchie
|
|
|
|
| 36 |
<img src="https://huggingface.co/bardofcodes/pattern_analogies/resolve/main/assets/arch_1.png" width="99%">
|
| 37 |
</p>
|
| 38 |
<p align="center">
|
| 39 |
+
<img src="https://huggingface.co/bardofcodes/pattern_analogies/resolve/main/assets/arch_2.png" width="99%">
|
| 40 |
</p>
|
| 41 |
|
| 42 |
- **Developed by:** Aditya Ganeshan, Thibault Groueix, Paul Guerrero, Radomír Měch, Matthew Fisher and Daniel Ritchie
|