File size: 733 Bytes
16c8067
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import argparse

from nota_wav2lip.preprocess import get_preprocessed_data


def parse_args():

    parser = argparse.ArgumentParser(description="NotaWav2Lip: Preprocess the facial video with face detection")

    parser.add_argument(
        '-i',
        '--input-file',
        type=str,
        required=True,
        help="Path of the facial video. We recommend that the video is one of LRS3 data samples, which is the result of `download.py`."
             "The extracted features and facial image sequences are saved at the same location with the input file."
    )

    args = parser.parse_args()

    return args

if __name__ == '__main__':
    args = parse_args()

    get_preprocessed_data(
        args.input_file,
    )