-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathinstall.py
More file actions
17 lines (14 loc) · 575 Bytes
/
install.py
File metadata and controls
17 lines (14 loc) · 575 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import launch
import os
import platform
system = platform.system()
req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt")
with open(req_file) as file:
for lib in file:
lib = lib.strip()
if lib == "dlib-bin" and system == "Darwin":
lib = "dlib" # replace dlib-bin as dlib
if lib == "onnxruntime-gpu==1.15.0" and system == "Darwin":
continue # skip onnxruntime-gpu
if not launch.is_installed(lib):
launch.run_pip(f"install {lib}", f"wav2lip_uhq requirement: {lib}")