Spaces:
Paused
Paused
Commit
β’
e572a73
1
Parent(s):
787841a
Update app.py
Browse files
app.py
CHANGED
@@ -266,8 +266,8 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, sdxl_lora
|
|
266 |
pipe.load_textual_inversion(state_dict_embedding["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
|
267 |
except:
|
268 |
pipe.unload_textual_inversion()
|
269 |
-
pipe.load_textual_inversion(state_dict_embedding["
|
270 |
-
pipe.load_textual_inversion(state_dict_embedding["
|
271 |
|
272 |
image = pipe(
|
273 |
prompt=prompt,
|
|
|
266 |
pipe.load_textual_inversion(state_dict_embedding["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
|
267 |
except:
|
268 |
pipe.unload_textual_inversion()
|
269 |
+
pipe.load_textual_inversion(state_dict_embedding["text_encoders_1"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder, tokenizer=pipe.tokenizer)
|
270 |
+
pipe.load_textual_inversion(state_dict_embedding["text_encoders_0"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
|
271 |
|
272 |
image = pipe(
|
273 |
prompt=prompt,
|