um235 commited on
Commit
1e0fc29
·
verified ·
1 Parent(s): 636d991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def infer(
51
 
52
  pipe = None
53
  if (model_repo_id=="stable-diffusion-v1-5/stable-diffusion-v1-5 with lora"):
54
- pipe=DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
55
- pipe.unet = PeftModel.from_pretrained(pipe.unet,"um235/cartoon_cat_stickers",cross_attention_kwargs={"scale": 0.5})
56
  else:
57
  pipe=DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
58
  pipe = pipe.to(device)
 
51
 
52
  pipe = None
53
  if (model_repo_id=="stable-diffusion-v1-5/stable-diffusion-v1-5 with lora"):
54
+ pipe=DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch_dtype,cross_attention_kwargs={"scale": 0.5})
55
+ pipe.unet = PeftModel.from_pretrained(pipe.unet,"um235/cartoon_cat_stickers")
56
  else:
57
  pipe=DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
58
  pipe = pipe.to(device)