Skip to content

Commit

Permalink
Add batch_keyframe_idx on ControlNetUnit (#2926)
Browse files Browse the repository at this point in the history
batch_keyframe_idx is needed by AnimateDiff for SparseCtrl
  • Loading branch information
zappityzap authored May 23, 2024
1 parent 92e4b12 commit ba3984a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal_controlnet/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def parse_ipadapter_input(cls, value) -> Optional[List[torch.Tensor]]:
animatediff_batch: bool = False
batch_modifiers: list = []
batch_image_files: list = []
batch_keyframe_idx: Optional[str|list] = None

@property
def accepts_multiple_inputs(self) -> bool:
Expand Down

0 comments on commit ba3984a

Please sign in to comment.