File size: 441 Bytes
88a25be
8100963
 
e354383
8100963
7e6ea8d
8100963
 
 
 
 
88a25be
1
2
3
4
5
6
7
8
9
10
11
12
13

"""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
    )