Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
2a111bc9
"git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "1de2d0c8207b0f3b7f6119eeae5562fe57efeea9"
Unverified
Commit
2a111bc9
authored
Dec 08, 2023
by
apolinário
Committed by
GitHub
Dec 08, 2023
Browse files
[Advanced Training Script] Fix pipe example (#6106)
parent
16e6997f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py
...diffusion_training/train_dreambooth_lora_sdxl_advanced.py
+2
-2
No files found.
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py
View file @
2a111bc9
...
@@ -135,8 +135,8 @@ from safetensors.torch import load_file
...
@@ -135,8 +135,8 @@ from safetensors.torch import load_file
"""
"""
diffusers_example_pivotal
=
f
"""embedding_path = hf_hub_download(repo_id='
{
repo_id
}
', filename="embeddings.safetensors", repo_type="model")
diffusers_example_pivotal
=
f
"""embedding_path = hf_hub_download(repo_id='
{
repo_id
}
', filename="embeddings.safetensors", repo_type="model")
state_dict = load_file(embedding_path)
state_dict = load_file(embedding_path)
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder, tokenizer=pipe.tokenizer)
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipe
line
.text_encoder, tokenizer=pipe
line
.tokenizer)
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipe
line
.text_encoder_2, tokenizer=pipe
line
.tokenizer_2)
"""
"""
if
token_abstraction_dict
:
if
token_abstraction_dict
:
for
key
,
value
in
token_abstraction_dict
.
items
():
for
key
,
value
in
token_abstraction_dict
.
items
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment