Instructions to use jasperai/flash-sd3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jasperai/flash-sd3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3-medium", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("jasperai/flash-sd3") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,11 +24,12 @@ See our [live demo](https://huggingface.co/spaces/jasperai/flash-sd3) and offici
|
|
| 24 |
|
| 25 |
The model can be used using the `StableDiffusion3Pipeline` from `diffusers` library directly. It can allow reducing the number of required sampling steps to **4 steps**.
|
| 26 |
|
| 27 |
-
First, you need to install a specific version of `
|
| 28 |
|
| 29 |
```bash
|
| 30 |
pip install git+https://github.com/initml/diffusers.git@clement/feature/flash_sd3
|
| 31 |
```
|
|
|
|
| 32 |
Then, you can ru the following to generate an image
|
| 33 |
|
| 34 |
```python
|
|
|
|
| 24 |
|
| 25 |
The model can be used using the `StableDiffusion3Pipeline` from `diffusers` library directly. It can allow reducing the number of required sampling steps to **4 steps**.
|
| 26 |
|
| 27 |
+
First, you need to install a specific version of `diffusers` by runniung
|
| 28 |
|
| 29 |
```bash
|
| 30 |
pip install git+https://github.com/initml/diffusers.git@clement/feature/flash_sd3
|
| 31 |
```
|
| 32 |
+
|
| 33 |
Then, you can ru the following to generate an image
|
| 34 |
|
| 35 |
```python
|