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
3651bdb7
Unverified
Commit
3651bdb7
authored
May 30, 2025
by
Yaniv Galron
Committed by
GitHub
May 30, 2025
Browse files
removing unnecessary else statement (#11624)
Co-authored-by:
Aryan
<
aryan@huggingface.co
>
parent
df55f053
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/diffusers/models/transformers/transformer_flux.py
src/diffusers/models/transformers/transformer_flux.py
+0
-2
No files found.
src/diffusers/models/transformers/transformer_flux.py
View file @
3651bdb7
...
...
@@ -447,8 +447,6 @@ class FluxTransformer2DModel(
timestep
=
timestep
.
to
(
hidden_states
.
dtype
)
*
1000
if
guidance
is
not
None
:
guidance
=
guidance
.
to
(
hidden_states
.
dtype
)
*
1000
else
:
guidance
=
None
temb
=
(
self
.
time_text_embed
(
timestep
,
pooled_projections
)
...
...
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