forked from aigc-apps/sd-webui-EasyPhoto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
32 lines (24 loc) · 1.26 KB
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import launch
import platform
if not launch.is_installed("cv2"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install opencv-python", "requirements for opencv")
if not launch.is_installed("tensorflow-cpu"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install tensorflow-cpu", "requirements for tensorflow")
if not launch.is_installed("onnx"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install onnx", "requirements for onnx")
if not launch.is_installed("onnxruntime"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install onnxruntime", "requirements for onnxruntime")
if not launch.is_installed("modelscope==1.8.4"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install modelscope==1.8.4", "requirements for modelscope")
if not launch.is_installed("diffusers==0.18.2"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install diffusers==0.18.2", "requirements for diffusers")
if platform.system() != 'Windows':
if not launch.is_installed("nvitop"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install nvitop==1.3.0", "requirements for tensorflow")