alfredplpl commited on
Commit
99749b3
·
verified ·
1 Parent(s): 999c041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ pipe_normal.load_textual_inversion(state_dict["clip_l"], token="unaestheticXLv31
23
 
24
  pipe_normal.to("cuda")
25
 
26
- #pipe_normal.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
27
 
28
  compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
29
  text_encoder=[pipe_normal.text_encoder, pipe_normal.text_encoder_2],
@@ -33,7 +33,7 @@ compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
33
  @spaces.GPU
34
  def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
35
  conditioning, pooled = compel(prompt)
36
- negative_conditioning, negatice_pooled = compel("unaestheticXLv31-, bad hand, bad anatomy, low quality, "+negative_prompt)
37
  result = pipe_normal(
38
  prompt_embeds=conditioning,
39
  pooled_prompt_embeds=pooled,
 
23
 
24
  pipe_normal.to("cuda")
25
 
26
+ pipe_normal.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
27
 
28
  compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
29
  text_encoder=[pipe_normal.text_encoder, pipe_normal.text_encoder_2],
 
33
  @spaces.GPU
34
  def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
35
  conditioning, pooled = compel(prompt)
36
+ negative_conditioning, negatice_pooled = compel("unaestheticXLv31, bad hand, bad anatomy, low quality, "+negative_prompt)
37
  result = pipe_normal(
38
  prompt_embeds=conditioning,
39
  pooled_prompt_embeds=pooled,