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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user