[Diffusion] Fix FLUX.1-schnell time embedding argument mismatch (#17988)
This commit is contained in:
@@ -541,11 +541,11 @@ class FluxTransformer2DModel(CachableDiT, OffloadableDiTMixin):
|
|||||||
)
|
)
|
||||||
hidden_states, _ = self.x_embedder(hidden_states)
|
hidden_states, _ = self.x_embedder(hidden_states)
|
||||||
|
|
||||||
temb = (
|
# Only pass guidance to time_text_embed if the model supports it
|
||||||
self.time_text_embed(timestep, pooled_projections)
|
if self.config.guidance_embeds and guidance is not None:
|
||||||
if guidance is None
|
temb = self.time_text_embed(timestep, guidance, pooled_projections)
|
||||||
else self.time_text_embed(timestep, guidance, pooled_projections)
|
else:
|
||||||
)
|
temb = self.time_text_embed(timestep, pooled_projections)
|
||||||
|
|
||||||
encoder_hidden_states, _ = self.context_embedder(encoder_hidden_states)
|
encoder_hidden_states, _ = self.context_embedder(encoder_hidden_states)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user