fix: v2v more than one face

This commit is contained in:
guojianzhu 2024-07-20 13:31:54 +08:00
parent 3cb20ffddb
commit 51543310a2

View File

@ -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(