Skip to content

Commit

Permalink
Fixed scale_masks param being None with CameraCtrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosinkadink committed Aug 16, 2024
1 parent 541ece5 commit 7eeed53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions animatediff/motion_module_ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,8 @@ def forward(
view_options: Union[ContextOptions, None]=None,
mm_kwargs: dict[str]=None,
):
if scale_masks is None:
scale_masks = [None] * len(self.attention_blocks)
# make view_options None if context_length > video_length, or if equal and equal not allowed
if view_options:
if view_options.context_length > video_length:
Expand Down

0 comments on commit 7eeed53

Please sign in to comment.