Text-to-Image
Diffusers
VersatileDiffusionPipeline
image-to-text
image-to-image
text-to-text
image-editing
image-variation
generation
vision
Instructions to use shi-labs/versatile-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use shi-labs/versatile-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("shi-labs/versatile-diffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "A high tech solarpunk utopia in the Amazon rainforest" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ Resources for more information: [GitHub](https://github.com/SHI-Labs/Versatile-D
|
|
| 18 |
One single flow of Versatile Diffusion contains a VAE, a diffuser, and a context encoder, and thus handles one task (e.g., text-to-image) under one data type (e.g., image) and one context type (e.g., text). The multi-flow structure of Versatile Diffusion shows in the following diagram:
|
| 19 |
|
| 20 |
<p align="center">
|
| 21 |
-
<img src="assets/figures/VD_framework.png" width="99%">
|
| 22 |
</p>
|
| 23 |
|
| 24 |
# Cautions, Biases, and Content Acknowledgment
|
|
|
|
| 18 |
One single flow of Versatile Diffusion contains a VAE, a diffuser, and a context encoder, and thus handles one task (e.g., text-to-image) under one data type (e.g., image) and one context type (e.g., text). The multi-flow structure of Versatile Diffusion shows in the following diagram:
|
| 19 |
|
| 20 |
<p align="center">
|
| 21 |
+
<img src="https://huggingface.co/shi-labs/versatile-diffusion-model/resolve/main/assets/figures/VD_framework.png" width="99%">
|
| 22 |
</p>
|
| 23 |
|
| 24 |
# Cautions, Biases, and Content Acknowledgment
|