-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinstall.py
More file actions
15 lines (14 loc) · 698 Bytes
/
install.py
File metadata and controls
15 lines (14 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import launch
launch.run_pip("install diffusers==0.21.0")
if not launch.is_installed("xformers"):
launch.run_pip("install xformers")
if not launch.is_installed("accelerate"):
launch.run_pip("install accelerate")
if not launch.is_installed("huggingface_hub"):
launch.run_pip("install huggingface_hub")
if not launch.is_installed("transformers"):
launch.run_pip("install transformers")
if not launch.is_installed("stable_diffusion_reference_only"):
launch.run_pip("install git+https://github.com/aihao2000/stable-diffusion-reference-only.git")
if not launch.is_installed("anime_segmentation"):
launch.run_pip("install git+https://github.com/aihao2000/anime-segmentation.git")