From 12d82f8f6d7087a3ce9491766ab9ef947c7e2855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Van/=E6=94=BB=E5=9F=8E=E7=8B=AE=E9=B9=BF=E9=B8=A3=E5=90=9B?= Date: Wed, 29 Nov 2023 02:37:04 +0800 Subject: [PATCH 1/2] Update install.py for China Users to access github via mirrors --- install.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.py b/install.py index 0b9d37e..52e050c 100644 --- a/install.py +++ b/install.py @@ -1,6 +1,7 @@ import launch import os import platform +import locale system = platform.system() @@ -11,6 +12,9 @@ lib = lib.strip() if lib == "dlib-bin" and system == "Darwin": lib = "dlib" # replace dlib-bin as dlib + if lib == "git+https://github.com/suno-ai/bark.git": + if locale.setlocale(locale.LC_ALL, '') == "zh_CN.UTF-8" or "Chinese (Simplified)_China.utf8": + lib = "git+https://mirror.ghproxy.com/https://github.com/suno-ai/bark.git" # China Github mirrors if lib == "onnxruntime-gpu==1.15.0" and system == "Darwin": continue # skip onnxruntime-gpu if not launch.is_installed(lib): From 7764e89303aa860a3c2c4458bc5b513343f83850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Van/=E6=94=BB=E5=9F=8E=E7=8B=AE=E9=B9=BF=E9=B8=A3=E5=90=9B?= Date: Wed, 29 Nov 2023 16:18:47 +0800 Subject: [PATCH 2/2] Update .gitignore ignore face_enhanced & faceswap png&mp4 --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index eb1e79e..de678cb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ scripts/wav2lip/checkpoints/lipsync_expert_.pth scripts/wav2lip/face_detection/detection/sfd/s3fd.pth scripts/wav2lip/predicator/shape_predictor_68_face_landmarks.dat scripts/wav2lip/output/debug/*.png +scripts/wav2lip/output/face_enhanced/*.png +scripts/wav2lip/output/faceswap/*.png +scripts/wav2lip/output/faceswap/*.mp4 scripts/wav2lip/output/final/*.png scripts/wav2lip/output/images/*.png scripts/wav2lip/output/masks/*.png @@ -17,4 +20,4 @@ scripts/wav2lip/results/result_voice.mp4 scripts/wav2lip/temp/*.avi scripts/wav2lip/temp/*.wav docs/* -scripts/faceswap/model/inswapper_128.onnx \ No newline at end of file +scripts/faceswap/model/inswapper_128.onnx