shichen1231 commited on
Commit
0525e06
β€’
1 Parent(s): f2467d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.from_pretrained(
14
- model_id,
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,