FaceSwapAll22 / VideoSwapping.py
dosesnrolls1's picture
Upload 8 files
8100963 verified
Raw
History Blame Contribute Delete
441 Bytes
"""Backward-compatible wrapper around the optimized video engine."""
from optimized_swapper import FaceSwapEngine
_ENGINE = FaceSwapEngine()
def swap_video(source_img, video_path, source_face_idx=1, target_face_idx=1,
det_size=320, detection_interval=1):
return _ENGINE.swap_video(
source_img, source_face_idx, video_path, target_face_idx,
det_size=det_size, detection_interval=detection_interval
)