compressed-wav2lip / preprocess.py
Hyoung-Kyu Song
Reinitialize demo with published github repository. With Gradio 4.x
16c8067
raw
history blame
733 Bytes
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,
)