Update main2.py
Browse files
main2.py
CHANGED
|
@@ -21,7 +21,7 @@ if params["ui"] == "anapnoe手机端完美适配":
|
|
| 21 |
subprocess.run(f'git clone https://github.com/anapnoe/stable-diffusion-webui {params["dir"]}', shell=True)
|
| 22 |
elif params["ui"] == "AUTOMATIC1111原版v1.3.0(稳定)":
|
| 23 |
subprocess.run(
|
| 24 |
-
f'git clone -b v1.
|
| 25 |
else:
|
| 26 |
subprocess.run(
|
| 27 |
f'git clone -b v1.5.1 https://github.com/s4afa451dgf415f/sdwi {params["dir"]}', shell=True)
|
|
@@ -178,12 +178,12 @@ def wget_download():
|
|
| 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
|
|
|
|
| 183 |
end_time = time.time()
|
| 184 |
print("pip完成下载耗时:", end_time - start_time, "秒")
|
| 185 |
|
| 186 |
-
|
| 187 |
executor = concurrent.futures.ThreadPoolExecutor(max_workers=5)
|
| 188 |
task1 = executor.submit(run_git_download)
|
| 189 |
task2 = executor.submit(run_aria2c_download)
|
|
|
|
| 21 |
subprocess.run(f'git clone https://github.com/anapnoe/stable-diffusion-webui {params["dir"]}', shell=True)
|
| 22 |
elif params["ui"] == "AUTOMATIC1111原版v1.3.0(稳定)":
|
| 23 |
subprocess.run(
|
| 24 |
+
f'git clone -b v1.3.0 https://github.com/s4afa451dgf415f/sdwi {params["dir"]}', shell=True)
|
| 25 |
else:
|
| 26 |
subprocess.run(
|
| 27 |
f'git clone -b v1.5.1 https://github.com/s4afa451dgf415f/sdwi {params["dir"]}', 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 -U xformers --index-url https://download.pytorch.org/whl/cu118", shell=True)
|
| 183 |
+
# 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)
|
| 184 |
end_time = time.time()
|
| 185 |
print("pip完成下载耗时:", end_time - start_time, "秒")
|
| 186 |
|
|
|
|
| 187 |
executor = concurrent.futures.ThreadPoolExecutor(max_workers=5)
|
| 188 |
task1 = executor.submit(run_git_download)
|
| 189 |
task2 = executor.submit(run_aria2c_download)
|