Instructions to use naclbit/trinart_stable_diffusion_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use naclbit/trinart_stable_diffusion_v2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("naclbit/trinart_stable_diffusion_v2", 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
add gradio web ui in colab notebook
Browse filesadded a gradio web ui demo inside colab notebook using diffusers
README.md
CHANGED
|
@@ -23,6 +23,11 @@ and can easily be run from one of the branches:
|
|
| 23 |
|
| 24 |
For more information, please have a look at [the "Three flavors" section](#three-flavors).
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
### Example Text2Image
|
| 27 |
|
| 28 |
```python
|
|
|
|
| 23 |
|
| 24 |
For more information, please have a look at [the "Three flavors" section](#three-flavors).
|
| 25 |
|
| 26 |
+
## Gradio
|
| 27 |
+
|
| 28 |
+
We also support a [Gradio](https://github.com/gradio-app/gradio) web ui with diffusers to run inside a colab notebook: [](https://colab.research.google.com/drive/1RWvik_C7nViiR9bNsu3fvMR3STx6RvDx?usp=sharing)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
### Example Text2Image
|
| 32 |
|
| 33 |
```python
|