Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Commit
•
efbf68a
1
Parent(s):
49a86bd
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ pipe_normal = StableDiffusionXLPipeline.from_pretrained(model_id, scheduler=sche
|
|
16 |
|
17 |
negative_ti_file = hf_hub_download(repo_id="Aikimi/unaestheticXL_Negative_TI", filename="unaestheticXLv31.safetensors")
|
18 |
state_dict = load_file(negative_ti_file)
|
19 |
-
pipe_normal.load_textual_inversion(state_dict["clip_g"], token="unaestheticXLv31", text_encoder=
|
20 |
-
pipe_normal.load_textual_inversion(state_dict["clip_l"], token="unaestheticXLv31", text_encoder=
|
21 |
|
22 |
pipe_normal.to("cuda")
|
23 |
|
|
|
16 |
|
17 |
negative_ti_file = hf_hub_download(repo_id="Aikimi/unaestheticXL_Negative_TI", filename="unaestheticXLv31.safetensors")
|
18 |
state_dict = load_file(negative_ti_file)
|
19 |
+
pipe_normal.load_textual_inversion(state_dict["clip_g"], token="unaestheticXLv31", text_encoder=pipe_normal.text_encoder_2, tokenizer=pipe_normal.tokenizer_2)
|
20 |
+
pipe_normal.load_textual_inversion(state_dict["clip_l"], token="unaestheticXLv31", text_encoder=pipe_normal.text_encoder, tokenizer=pipe_normal.tokenizer)
|
21 |
|
22 |
pipe_normal.to("cuda")
|
23 |
|