alfredplpl commited on
Commit
c208b25
β€’
1 Parent(s): d90e48a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ pipe_normal.load_textual_inversion(state_dict["clip_g"], token="unaestheticXL_Al
26
  pipe_normal.load_textual_inversion(state_dict["clip_l"], token="unaestheticXL_Alb2", text_encoder=pipe_normal.text_encoder, tokenizer=pipe_normal.tokenizer)
27
 
28
  pipe_normal.load_lora_weights("fix_hands.pt")
29
- pipe_normal.fuse_lora(lora_scale=1.5)
30
 
31
  pipe_normal.to("cuda")
32
 
@@ -47,7 +47,7 @@ def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progr
47
  conditioning, pooled = compel("1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
48
  else:
49
  conditioning, pooled = compel(prompt)
50
- negative_conditioning, negatice_pooled = compel("(unaestheticXLv31)++++++, bad hands, bad anatomy, low quality, 3d, photo, realism, text, sign, "+negative_prompt)
51
  result = pipe_normal(
52
  prompt_embeds=conditioning,
53
  pooled_prompt_embeds=pooled,
 
26
  pipe_normal.load_textual_inversion(state_dict["clip_l"], token="unaestheticXL_Alb2", text_encoder=pipe_normal.text_encoder, tokenizer=pipe_normal.tokenizer)
27
 
28
  pipe_normal.load_lora_weights("fix_hands.pt")
29
+ pipe_normal.fuse_lora(lora_scale=1.0)
30
 
31
  pipe_normal.to("cuda")
32
 
 
47
  conditioning, pooled = compel("1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
48
  else:
49
  conditioning, pooled = compel(prompt)
50
+ negative_conditioning, negatice_pooled = compel("(unaestheticXLv31)++, (unaestheticXL_Alb2)++, bad hands, bad anatomy, low quality, 3d, photo, realism, text, sign, "+negative_prompt)
51
  result = pipe_normal(
52
  prompt_embeds=conditioning,
53
  pooled_prompt_embeds=pooled,