Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install.py #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
scripts/faceswap/model/inswapper_128.onnx
4 changes: 4 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import launch
import os
import platform
import locale

system = platform.system()

Expand All @@ -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):
Expand Down