FredZhang7
commited on
Commit
•
4aeab19
1
Parent(s):
e823903
Update README.md
Browse files
README.md
CHANGED
@@ -83,7 +83,7 @@ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
|
|
83 |
Download [checkpoint](./paint_journey_v2.ckpt) and [vae](./paint_journey_v2.vae.pt) to the `./stable-diffusion-webui/models/Stable-diffusion` folder. Run `webui-user.bat`.
|
84 |
|
85 |
|
86 |
-
## Diffusers
|
87 |
|
88 |
*Tip: using double, tripple, or quadriple brackets around some letters WORD (e.g. "((WORD))") will put an 'emphasis' on WORD*
|
89 |
|
@@ -91,10 +91,13 @@ Download [checkpoint](./paint_journey_v2.ckpt) and [vae](./paint_journey_v2.vae.
|
|
91 |
pip install --upgrade diffusers transformers
|
92 |
```
|
93 |
```python
|
94 |
-
|
|
|
|
|
95 |
import torch, random, datetime
|
96 |
|
97 |
pipe = StableDiffusionPipeline.from_pretrained("FredZhang7/paint-journey-v2")
|
|
|
98 |
pipe = pipe.to("cuda")
|
99 |
|
100 |
def random_seed():
|
|
|
83 |
Download [checkpoint](./paint_journey_v2.ckpt) and [vae](./paint_journey_v2.vae.pt) to the `./stable-diffusion-webui/models/Stable-diffusion` folder. Run `webui-user.bat`.
|
84 |
|
85 |
|
86 |
+
## 🧨 Diffusers
|
87 |
|
88 |
*Tip: using double, tripple, or quadriple brackets around some letters WORD (e.g. "((WORD))") will put an 'emphasis' on WORD*
|
89 |
|
|
|
91 |
pip install --upgrade diffusers transformers
|
92 |
```
|
93 |
```python
|
94 |
+
# see more sampling algorithms at https://huggingface.co/docs/diffusers/using-diffusers/schedulers#changing-the-scheduler
|
95 |
+
|
96 |
+
from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
|
97 |
import torch, random, datetime
|
98 |
|
99 |
pipe = StableDiffusionPipeline.from_pretrained("FredZhang7/paint-journey-v2")
|
100 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
101 |
pipe = pipe.to("cuda")
|
102 |
|
103 |
def random_seed():
|