Skip to content

Commit

Permalink
update multi-id workflow and add depth workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matt3o committed Feb 15, 2024
1 parent 94d08d2 commit 40b86b4
Show file tree
Hide file tree
Showing 3 changed files with 2,370 additions and 610 deletions.
1 change: 1 addition & 0 deletions InstantID.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def draw_kps(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,2
out_img_pil = PIL.Image.fromarray(out_img.astype(np.uint8))
return out_img_pil

# All this mess to keep compatibility with IPAdapter, it will be helpful in case we want AnimateDiff to work with InstantID
class CrossAttentionPatch:
# forward for patching
def __init__(self, weight, ipadapter, number, cond, uncond, weight_type="original", mask=None, sigma_start=0.0, sigma_end=1.0, unfold_batch=False):
Expand Down
Loading

0 comments on commit 40b86b4

Please sign in to comment.