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
f92e599c
Unverified
Commit
f92e599c
authored
Mar 04, 2025
by
Yuxuan Zhang
Committed by
GitHub
Mar 03, 2025
Browse files
Update pipeline_cogview4.py (#10944)
parent
982f9b38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/cogview4/pipeline_cogview4.py
src/diffusers/pipelines/cogview4/pipeline_cogview4.py
+1
-1
No files found.
src/diffusers/pipelines/cogview4/pipeline_cogview4.py
View file @
f92e599c
...
...
@@ -215,7 +215,7 @@ class CogView4Pipeline(DiffusionPipeline):
)
text_input_ids
=
torch
.
cat
([
pad_ids
,
text_input_ids
],
dim
=
1
)
prompt_embeds
=
self
.
text_encoder
(
text_input_ids
.
to
(
self
.
text_encoder
.
model
.
device
),
output_hidden_states
=
True
text_input_ids
.
to
(
self
.
text_encoder
.
device
),
output_hidden_states
=
True
).
hidden_states
[
-
2
]
prompt_embeds
=
prompt_embeds
.
to
(
dtype
=
dtype
,
device
=
device
)
...
...
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