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
- Draw Things
- DiffusionBee
Commit ·
e9f687c
1
Parent(s): 027e574
Update README.md
Browse files
README.md
CHANGED
|
@@ -56,6 +56,11 @@ You can use the model both with the [🧨Diffusers library](https://github.com/h
|
|
| 56 |
|
| 57 |
Diffusers let's you both use a unified and more memory-efficient, task-specific pipelines.
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## VersatileDiffusionPipeline
|
| 60 |
|
| 61 |
To use Versatile Diffusion for all tasks, it is recommend to use the [`VersatileDiffusionPipeline`](https://huggingface.co/docs/diffusers/main/en/api/pipelines/versatile_diffusion#diffusers.VersatileDiffusionPipeline)
|
|
|
|
| 56 |
|
| 57 |
Diffusers let's you both use a unified and more memory-efficient, task-specific pipelines.
|
| 58 |
|
| 59 |
+
**Make sure to install `transformers` from `"main"` in order to use this model.**:
|
| 60 |
+
```
|
| 61 |
+
pip install git+https://github.com/huggingface/transformers
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
## VersatileDiffusionPipeline
|
| 65 |
|
| 66 |
To use Versatile Diffusion for all tasks, it is recommend to use the [`VersatileDiffusionPipeline`](https://huggingface.co/docs/diffusers/main/en/api/pipelines/versatile_diffusion#diffusers.VersatileDiffusionPipeline)
|