ChenyangSi commited on
Commit
3fa8c23
1 Parent(s): 4fbcfd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ model_id = "CompVis/stable-diffusion-v1-4"
19
  # register_free_crossattn_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
20
  # # -------- freeu block registration
21
 
22
- def infer(prompt, model_id, seed, b1, b2, s1, s2):
23
 
24
- pip = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
25
  pip = pip.to("cuda")
26
 
27
 
 
19
  # register_free_crossattn_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
20
  # # -------- freeu block registration
21
 
22
+ def infer(prompt, model, seed, b1, b2, s1, s2):
23
 
24
+ pip = StableDiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
25
  pip = pip.to("cuda")
26
 
27