ChenyangSi commited on
Commit
ea827c0
1 Parent(s): 22e6c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,8 +122,8 @@ with block:
122
  pip_freeu = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
123
  pip_freeu = pip_freeu.to("cuda")
124
  # -------- freeu block registration
125
- register_free_upblock2d(pipe, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
126
- register_free_crossattn_upblock2d(pipe, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
127
  # -------- freeu block registration
128
 
129
  with gr.Accordion('FreeU Parameters', open=False):
 
122
  pip_freeu = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
123
  pip_freeu = pip_freeu.to("cuda")
124
  # -------- freeu block registration
125
+ register_free_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
126
+ register_free_crossattn_upblock2d(pip_freeu, b1=1.2, b2=1.4, s1=0.9, s2=0.2)
127
  # -------- freeu block registration
128
 
129
  with gr.Accordion('FreeU Parameters', open=False):