1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

removing unnecessary else statement (#11624)

Co-authored-by: Aryan <aryan@huggingface.co>
This commit is contained in:
Yaniv Galron
2025-05-30 08:59:24 +03:00
committed by GitHub
parent df55f05358
commit 3651bdb766

View File

@@ -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)