Skip to content

Commit

Permalink
Add ControlNetUnit.batch_mask_dir for compatibility (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored May 7, 2024
1 parent 084dd01 commit 8d1389d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal_controlnet/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def parse_ipadapter_input(cls, value) -> Optional[List[torch.Tensor]]:
# The mask to be used on top of the image.
mask: Optional[Any] = None

# Backward compatible with animatediff impl.
batch_mask_dir: Optional[str] = None

@property
def accepts_multiple_inputs(self) -> bool:
"""This unit can accept multiple input images."""
Expand Down

0 comments on commit 8d1389d

Please sign in to comment.