Instructions to use channudam/stable-diffusion-khm-53 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use channudam/stable-diffusion-khm-53 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("channudam/stable-diffusion-khm-53", 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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,8 +26,9 @@ For best results, it is recommended to fine-tune the following three main compon
|
|
| 26 |
## Usage (with GPU)
|
| 27 |
|
| 28 |
```python
|
| 29 |
-
from diffusers import StableDiffusionPipeline
|
| 30 |
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
| 31 |
|
| 32 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 33 |
"channudam/stable-diffusion-khm-53",
|
|
|
|
| 26 |
## Usage (with GPU)
|
| 27 |
|
| 28 |
```python
|
|
|
|
| 29 |
import matplotlib.pyplot as plt
|
| 30 |
+
import torch
|
| 31 |
+
from diffusers import StableDiffusionPipeline
|
| 32 |
|
| 33 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 34 |
"channudam/stable-diffusion-khm-53",
|