Update main2.py
Browse files
main2.py
CHANGED
|
@@ -71,9 +71,9 @@ def run_git_download():
|
|
| 71 |
# subprocess.run(
|
| 72 |
# f'git clone https://github.com/s4afa451dgf415f/sd-wi-aio {params["dir"]}/extensions/prompt-aio',
|
| 73 |
# shell=True)
|
| 74 |
-
subprocess.run(
|
| 75 |
-
|
| 76 |
-
|
| 77 |
subprocess.run(
|
| 78 |
f'git clone https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN {params["dir"]}/extensions/stable-diffusion-wi-localization-zh_CN',
|
| 79 |
shell=True)
|
|
@@ -178,7 +178,7 @@ def wget_download():
|
|
| 178 |
|
| 179 |
def pip_download():
|
| 180 |
start_time = time.time()
|
| 181 |
-
|
| 182 |
subprocess.run("pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 torchtext==0.15.2+cpu torchdata==0.6.1 --index-url https://download.pytorch.org/whl/cu118", shell=True)
|
| 183 |
end_time = time.time()
|
| 184 |
print("pip完成下载耗时:", end_time - start_time, "秒")
|
|
|
|
| 71 |
# subprocess.run(
|
| 72 |
# f'git clone https://github.com/s4afa451dgf415f/sd-wi-aio {params["dir"]}/extensions/prompt-aio',
|
| 73 |
# shell=True)
|
| 74 |
+
# subprocess.run(
|
| 75 |
+
# f'git clone https://github.com/Mikubill/sd-webui-controlnet {params["dir"]}/extensions/sd-wi-controlnet',
|
| 76 |
+
# shell=True)
|
| 77 |
subprocess.run(
|
| 78 |
f'git clone https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN {params["dir"]}/extensions/stable-diffusion-wi-localization-zh_CN',
|
| 79 |
shell=True)
|
|
|
|
| 178 |
|
| 179 |
def pip_download():
|
| 180 |
start_time = time.time()
|
| 181 |
+
subprocess.run("pip install xformers xformers==0.0.20", shell=True)
|
| 182 |
subprocess.run("pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 torchtext==0.15.2+cpu torchdata==0.6.1 --index-url https://download.pytorch.org/whl/cu118", shell=True)
|
| 183 |
end_time = time.time()
|
| 184 |
print("pip完成下载耗时:", end_time - start_time, "秒")
|