Skip to content

Commit 9738483

Browse files
authored
[SD] Map v2_1 to v2_1_base until fix (huggingface#1029)
1 parent 143492f commit 9738483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/stable_diffusion/src/models/model_wrappers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ def __init__(
9393
), "checkpoint files supported can be any of [.ckpt, .safetensors] type"
9494
custom_weights = get_path_to_diffusers_checkpoint(custom_weights)
9595
self.model_id = model_id if custom_weights == "" else custom_weights
96+
# TODO: remove the following line when stable-diffusion-2-1 works
97+
if self.model_id == "stabilityai/stable-diffusion-2-1":
98+
self.model_id = "stabilityai/stable-diffusion-2-1-base"
9699
self.custom_vae = custom_vae
97100
self.precision = precision
98101
self.base_vae = use_base_vae

0 commit comments

Comments
 (0)