Skip to content

Commit f99ccdf

Browse files
committed
SD 1.5! new default. ChangeLog. update MODEL_IDS (waifu too)
1 parent 13a9247 commit f99ccdf

3 files changed

Lines changed: 25 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@
22

33
* **2022-10-21**
44

5-
* Upgrade to **Diffusers 0.6.0**
6-
7-
* Biggest news of the above release is support for
5+
* **Stable Diffusion 1.5 released!!!**
6+
7+
Accept the license at:
8+
["runwayml/stable-diffusion-v1-5"](https://huggingface.co/runwayml/stable-diffusion-v1-5)
9+
10+
It's the new default model.
11+
12+
* **Official Stable Diffusion inpainting model**
13+
14+
Accept the license at:
815
["runwayml/stable-diffusion-inpainting"](https://huggingface.co/runwayml/stable-diffusion-inpainting),
9-
the first official stable diffusion checkpoint fine-tuned on **inpainting**.
1016

11-
You need to use the above link to *accept the license terms* on the
12-
model card before you'll be able to download it. Also, unfortunately,
13-
this means we're back to having a separate container for inpainting,
14-
as it's a different model.
17+
Unfortunately, as it's a different model, it means we're back to having a
18+
separate container for inpainting.
19+
20+
NB: `model_input` takes `image` now, and not `init_image` like the legacy model.
1521

16-
Note also: you need to send the image as `image` now, and not `init_image`.
22+
* Upgrade to **Diffusers v0.7.0.dev0**
1723

1824
* **Flash attention** now disabled by default. 1) Because it's built on
1925
an older version of diffusers, but also because 2) I didn't succeed in

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ ARG HF_AUTH_TOKEN
3535
ENV HF_AUTH_TOKEN=${HF_AUTH_TOKEN}
3636

3737
# "CompVis/stable-diffusion-v1-4", "hakurei/waifu-diffusion",
38-
# "runwayml/stable-diffusion-inpainting", etc. (huggingface)
39-
ARG MODEL_ID="CompVis/stable-diffusion-v1-4"
38+
# "runwayml/stable-diffusion-inpainting",
39+
# "runwayml/stable-diffusion-v1-5" etc. (huggingface)
40+
ARG MODEL_ID="runwayml/stable-diffusion-v1-5"
4041
ENV MODEL_ID=${MODEL_ID}
4142

4243
# If set, it will be downloaded and converted to diffusers format, and

loadModel.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
from diffusers import StableDiffusionPipeline
44

55
HF_AUTH_TOKEN = os.getenv("HF_AUTH_TOKEN")
6-
MODEL_IDS = ["CompVis/stable-diffusion-v1-4", "hakurei/waifu-diffusion"]
6+
MODEL_IDS = [
7+
"CompVis/stable-diffusion-v1-4",
8+
"hakurei/waifu-diffusion",
9+
"hakurei/waifu-diffusion-v1-3",
10+
"runwayml/stable-diffusion-inpainting",
11+
"runwayml/stable-diffusion-v1-5",
12+
]
713

814

915
def loadModel(model_id: str, load=True):

0 commit comments

Comments
 (0)