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
a0a51eb0
"vscode:/vscode.git/clone" did not exist on "55072b4e830704ec56b0725b4ec3a597e07873ae"
Unverified
Commit
a0a51eb0
authored
Oct 22, 2025
by
Álvaro Somoza
Committed by
GitHub
Oct 22, 2025
Browse files
Kandinsky5 No cfg fix (#12527)
fix
parent
a5a0ccf8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py
src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py
+9
-7
No files found.
src/diffusers/pipelines/kandinsky5/pipeline_kandinsky.py
View file @
a0a51eb0
...
@@ -744,12 +744,14 @@ class Kandinsky5T2VPipeline(DiffusionPipeline, KandinskyLoraLoaderMixin):
...
@@ -744,12 +744,14 @@ class Kandinsky5T2VPipeline(DiffusionPipeline, KandinskyLoraLoaderMixin):
)
)
if
negative_prompt_embeds_qwen
is
None
:
if
negative_prompt_embeds_qwen
is
None
:
negative_prompt_embeds_qwen
,
negative_prompt_embeds_clip
,
negative_cu_seqlens
=
self
.
encode_prompt
(
negative_prompt_embeds_qwen
,
negative_prompt_embeds_clip
,
negative_prompt_cu_seqlens
=
(
self
.
encode_prompt
(
prompt
=
negative_prompt
,
prompt
=
negative_prompt
,
max_sequence_length
=
max_sequence_length
,
max_sequence_length
=
max_sequence_length
,
device
=
device
,
device
=
device
,
dtype
=
dtype
,
dtype
=
dtype
,
)
)
)
# 4. Prepare timesteps
# 4. Prepare timesteps
self
.
scheduler
.
set_timesteps
(
num_inference_steps
,
device
=
device
)
self
.
scheduler
.
set_timesteps
(
num_inference_steps
,
device
=
device
)
...
@@ -780,8 +782,8 @@ class Kandinsky5T2VPipeline(DiffusionPipeline, KandinskyLoraLoaderMixin):
...
@@ -780,8 +782,8 @@ class Kandinsky5T2VPipeline(DiffusionPipeline, KandinskyLoraLoaderMixin):
text_rope_pos
=
torch
.
arange
(
prompt_cu_seqlens
.
diff
().
max
().
item
(),
device
=
device
)
text_rope_pos
=
torch
.
arange
(
prompt_cu_seqlens
.
diff
().
max
().
item
(),
device
=
device
)
negative_text_rope_pos
=
(
negative_text_rope_pos
=
(
torch
.
arange
(
negative_cu_seqlens
.
diff
().
max
().
item
(),
device
=
device
)
torch
.
arange
(
negative_
prompt_
cu_seqlens
.
diff
().
max
().
item
(),
device
=
device
)
if
negative_cu_seqlens
is
not
None
if
negative_
prompt_
cu_seqlens
is
not
None
else
None
else
None
)
)
...
...
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