mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-21 07:55:16 +00:00
The encoder hidden states and encode attention mask sizes do not match up in the validation pipeline.
This commit is contained in:
@@ -106,7 +106,7 @@ class LTXVideoConditionedTransformer3DModel(LTXVideoTransformer3DModel):
|
||||
# inject the condition and the residual then project it into the pretrained proj_in
|
||||
hidden_states = self.adapter(residual_x=residual_x,
|
||||
conditioned_x=hidden_states)
|
||||
|
||||
# whats this value ?
|
||||
hidden_states = self.proj_in(hidden_states)
|
||||
|
||||
temb, embedded_timestep = self.time_embed(
|
||||
@@ -134,7 +134,7 @@ class LTXVideoConditionedTransformer3DModel(LTXVideoTransformer3DModel):
|
||||
return custom_forward
|
||||
|
||||
ckpt_kwargs: Dict[str, Any] = {"use_reentrant": False} if is_torch_version(">=", "1.11.0") else {}
|
||||
hidden_states = torch.utils.checkpoint.checkpoint(
|
||||
hidden_states = torch.utils.checkpoint.checkpoint( # crashes here
|
||||
create_custom_forward(block),
|
||||
hidden_states,
|
||||
encoder_hidden_states,
|
||||
|
||||
Reference in New Issue
Block a user