mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-25 08:29:35 +00:00
make residual optional.
This commit is contained in:
@@ -93,7 +93,8 @@ class LTXVideoConditionedTransformer3DModel(LTXVideoTransformer3DModel):
|
|||||||
attention_kwargs: Optional[Dict[str, Any]] = None,
|
attention_kwargs: Optional[Dict[str, Any]] = None,
|
||||||
return_dict: bool = True
|
return_dict: bool = True
|
||||||
) -> torch.Tensor:
|
) -> torch.Tensor:
|
||||||
|
if residual_x == None:
|
||||||
|
print("Residual Not included in the calculation.")
|
||||||
image_rotary_emb = self.rope(hidden_states, num_frames, height, width, rope_interpolation_scale)
|
image_rotary_emb = self.rope(hidden_states, num_frames, height, width, rope_interpolation_scale)
|
||||||
|
|
||||||
# convert encoder_attention_mask to a bias the same way we do for attention_mask
|
# convert encoder_attention_mask to a bias the same way we do for attention_mask
|
||||||
|
|||||||
Reference in New Issue
Block a user