forked from aigc-apps/sd-webui-EasyPhoto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
26 lines (19 loc) · 1.02 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
import launch
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"):
print('Installing requirements for easyphoto-webui')
launch.run_pip("install modelscope", "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")