Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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=
|
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 |
|