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
a68f5062
"docs/vscode:/vscode.git/clone" did not exist on "a7361dccdc581147620bbd74a6d295cd92daf616"
Unverified
Commit
a68f5062
authored
Oct 19, 2023
by
Liang Hou
Committed by
GitHub
Oct 18, 2023
Browse files
style(sdxl): remove identity assignments (#5418)
parent
b864d674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
examples/text_to_image/train_text_to_image_sdxl.py
examples/text_to_image/train_text_to_image_sdxl.py
+0
-1
No files found.
examples/text_to_image/train_text_to_image_sdxl.py
View file @
a68f5062
...
@@ -1038,7 +1038,6 @@ def main(args):
...
@@ -1038,7 +1038,6 @@ def main(args):
prompt_embeds
=
batch
[
"prompt_embeds"
].
to
(
accelerator
.
device
)
prompt_embeds
=
batch
[
"prompt_embeds"
].
to
(
accelerator
.
device
)
pooled_prompt_embeds
=
batch
[
"pooled_prompt_embeds"
].
to
(
accelerator
.
device
)
pooled_prompt_embeds
=
batch
[
"pooled_prompt_embeds"
].
to
(
accelerator
.
device
)
unet_added_conditions
.
update
({
"text_embeds"
:
pooled_prompt_embeds
})
unet_added_conditions
.
update
({
"text_embeds"
:
pooled_prompt_embeds
})
prompt_embeds
=
prompt_embeds
model_pred
=
unet
(
model_pred
=
unet
(
noisy_model_input
,
timesteps
,
prompt_embeds
,
added_cond_kwargs
=
unet_added_conditions
noisy_model_input
,
timesteps
,
prompt_embeds
,
added_cond_kwargs
=
unet_added_conditions
).
sample
).
sample
...
...
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