Spaces:
Runtime error
Runtime error
shichen1231
commited on
Commit
β’
0525e06
1
Parent(s):
f2467d5
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,12 @@ torch.backends.cuda.matmul.allow_tf32 = True
|
|
6 |
import gc
|
7 |
|
8 |
model_id = "andite/pastel-mix"
|
9 |
-
|
10 |
|
11 |
controlnet = ControlNetModel.from_pretrained("ioclab/connow", torch_dtype=torch.float16, use_safetensors=True)
|
12 |
|
13 |
-
pipe = StableDiffusionControlNetPipeline.
|
14 |
-
|
15 |
controlnet=controlnet,
|
16 |
torch_dtype=torch.float16,
|
17 |
safety_checker=None,
|
|
|
6 |
import gc
|
7 |
|
8 |
model_id = "andite/pastel-mix"
|
9 |
+
model_url = "https://huggingface.co/andite/pastel-mix/blob/main/pastelmix-better-vae.ckpt"
|
10 |
|
11 |
controlnet = ControlNetModel.from_pretrained("ioclab/connow", torch_dtype=torch.float16, use_safetensors=True)
|
12 |
|
13 |
+
pipe = StableDiffusionControlNetPipeline.from_from_ckpt(
|
14 |
+
model_url,
|
15 |
controlnet=controlnet,
|
16 |
torch_dtype=torch.float16,
|
17 |
safety_checker=None,
|