Unverified Commit 3651bdb7 authored by Yaniv Galron's avatar Yaniv Galron Committed by GitHub
Browse files

removing unnecessary else statement (#11624)


Co-authored-by: default avatarAryan <aryan@huggingface.co>
parent df55f053
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment