shellypeng commited on
Commit
a97e58c
·
verified ·
1 Parent(s): 6281c75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,7 +111,7 @@ def load_pipe_depth():
111
  torch_dtype=torch.float16,
112
  )
113
  pipe_depth.load_lora_weights("shellypeng/lora1")
114
- pipe_depth.fuse_lora(lora_scale=1.5)
115
 
116
  pipe_depth.load_textual_inversion("shellypeng/textinv1")
117
  pipe_depth.load_textual_inversion("shellypeng/textinv2")
@@ -212,7 +212,7 @@ def real_img2img_to_anime(text, neg_prompt_box, input_img):
212
  if lang_check_label == 'zh' and lang_check_score >= 0.85:
213
  text = translate(text)
214
 
215
- compel_proc = Compel(tokenizer=pipe_scribble.tokenizer, text_encoder=pipe_scribble.text_encoder)
216
  prompt = text + hidden_booster_text
217
  prompt_embeds = compel_proc(prompt)
218
 
 
111
  torch_dtype=torch.float16,
112
  )
113
  pipe_depth.load_lora_weights("shellypeng/lora1")
114
+ pipe_depth.fuse_lora(lora_scale=0.3)
115
 
116
  pipe_depth.load_textual_inversion("shellypeng/textinv1")
117
  pipe_depth.load_textual_inversion("shellypeng/textinv2")
 
212
  if lang_check_label == 'zh' and lang_check_score >= 0.85:
213
  text = translate(text)
214
 
215
+ compel_proc = Compel(tokenizer=pipe_img2img.tokenizer, text_encoder=pipe_scribble.text_encoder)
216
  prompt = text + hidden_booster_text
217
  prompt_embeds = compel_proc(prompt)
218