You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,35 @@ In order to get started, we recommend taking a look at two notebooks:
34
34
- The [Training a diffusers model](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb) notebook summarizes diffuser model training methods. This notebook takes a step-by-step approach to training your
35
35
diffuser model on an image dataset, with explanatory graphics.
36
36
37
+
## **New** Stable Diffusion is now fully compatible with `diffusers`!
38
+
39
+
```py
40
+
# make sure you're logged in with `huggingface-cli login`
41
+
from torch import autocast
42
+
from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler
43
+
44
+
lms = LMSDiscreteScheduler(
45
+
beta_start=0.00085,
46
+
beta_end=0.012,
47
+
beta_schedule="scaled_linear"
48
+
)
49
+
50
+
pipe = StableDiffusionPipeline.from_pretrained(
51
+
"CompVis/stable-diffusion-v1-3-diffusers",
52
+
scheduler=lms,
53
+
use_auth_token=True
54
+
)
55
+
56
+
prompt ="a photo of an astronaut riding a horse on mars"
0 commit comments