mirror of
https://github.com/KwaiVGI/LivePortrait.git
synced 2024-12-22 12:22:38 +00:00
fix: v2v more than one face
This commit is contained in:
parent
3cb20ffddb
commit
51543310a2
@ -117,9 +117,10 @@ class Cropper(object):
|
||||
|
||||
return ret_dct
|
||||
|
||||
def crop_source_video(self, source_rgb_lst, crop_cfg: CropConfig):
|
||||
def crop_source_video(self, source_rgb_lst, crop_cfg: CropConfig, **kwargs):
|
||||
"""Tracking based landmarks/alignment and cropping"""
|
||||
trajectory = Trajectory()
|
||||
direction = kwargs.get("direction", "large-small")
|
||||
for idx, frame_rgb in enumerate(source_rgb_lst):
|
||||
if idx == 0 or trajectory.start == -1:
|
||||
src_face = self.face_analysis_wrapper.get(
|
||||
|
Loading…
Reference in New Issue
Block a user