From d6b84272fd48d501b5ede1ee0c1795d20f445d0c Mon Sep 17 00:00:00 2001 From: Prajwal Date: Mon, 16 Nov 2020 08:49:29 +0530 Subject: [PATCH] Dont call via shell for Windows --- inference.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inference.py b/inference.py index 58cc69f..9069252 100644 --- a/inference.py +++ b/inference.py @@ -6,6 +6,7 @@ from tqdm import tqdm from glob import glob import torch, face_detection from models import Wav2Lip +import platform parser = argparse.ArgumentParser(description='Inference code to lip-sync videos in the wild using Wav2Lip models') @@ -273,7 +274,7 @@ def main(): out.release() command = 'ffmpeg -y -i {} -i {} -strict -2 -q:v 1 {}'.format(args.audio, 'temp/result.avi', args.outfile) - subprocess.call(command, shell=True) + subprocess.call(command, shell=platform.system() != 'Windows') if __name__ == '__main__': main()