Text-to-Image
Diffusers
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
endpoints-template
Instructions to use philschmid/stable-diffusion-v1-4-endpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use philschmid/stable-diffusion-v1-4-endpoints with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("philschmid/stable-diffusion-v1-4-endpoints", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Commit ·
7f8ea92
1
Parent(s): 56d3072
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,9 +35,9 @@ The full license can be found here: https://huggingface.co/spaces/CompVis/stable
|
|
| 35 |
|
| 36 |
---
|
| 37 |
|
| 38 |
-
This repository implements a custom `handler` task for `text-to-image` for 🤗 Inference Endpoints. The code for the customized pipeline is in the [pipeline.py](https://huggingface.
|
| 39 |
|
| 40 |
-
There is also a [notebook](https://huggingface.
|
| 41 |
|
| 42 |
### expected Request payload
|
| 43 |
```json
|
|
|
|
| 35 |
|
| 36 |
---
|
| 37 |
|
| 38 |
+
This repository implements a custom `handler` task for `text-to-image` for 🤗 Inference Endpoints. The code for the customized pipeline is in the [pipeline.py](https://huggingface.co/philschmid/stable-diffusion-v1-4-endpoints/blob/main/handler.py).
|
| 39 |
|
| 40 |
+
There is also a [notebook](https://huggingface.co/philschmid/stable-diffusion-v1-4-endpoints/blob/main/create_handler.ipynb) included, on how to create the `handler.py`
|
| 41 |
|
| 42 |
### expected Request payload
|
| 43 |
```json
|