Update main2.py
Browse files
main2.py
CHANGED
|
@@ -18,10 +18,10 @@ for arg in sys.argv[1:]:
|
|
| 18 |
|
| 19 |
subprocess.run(f'cd {params["dir"]}/', shell=True)
|
| 20 |
if params["ui"] == "anapnoe手机端完美适配":
|
| 21 |
-
subprocess.run(f'git clone https://github.com/anapnoe/stable-diffusion-webui {params["dir"]}', shell=
|
| 22 |
-
elif params["ui"] == "AUTOMATIC1111原版v1.
|
| 23 |
subprocess.run(
|
| 24 |
-
f'git clone
|
| 25 |
else:
|
| 26 |
subprocess.run(
|
| 27 |
f'git clone -b v1.5.1 https://github.com/s4afa451dgf415f/sdwi {params["dir"]}', shell=True)
|
|
@@ -194,8 +194,9 @@ def wget_download():
|
|
| 194 |
def pip_download():
|
| 195 |
start_time = time.time()
|
| 196 |
subprocess.run("pip install pip==24.0.0", shell=True)
|
| 197 |
-
subprocess.run("pip install
|
| 198 |
-
subprocess.run("pip install
|
|
|
|
| 199 |
|
| 200 |
subprocess.run("pip install mediapipe svglib fvcore opencv-python>=4.8.0 PyExecJS pathos openai boto3 aliyun-python-sdk-core aliyun-python-sdk-alimt", shell=True)
|
| 201 |
for root, dirs, files in os.walk(f"{params['dir']}/extensions"):
|
|
|
|
| 18 |
|
| 19 |
subprocess.run(f'cd {params["dir"]}/', shell=True)
|
| 20 |
if params["ui"] == "anapnoe手机端完美适配":
|
| 21 |
+
subprocess.run(f'git clone https://github.com/anapnoe/stable-diffusion-webui {params["dir"]}', shell=Tr1ue)
|
| 22 |
+
elif params["ui"] == "AUTOMATIC1111原版v1.10.0[sdxl]":
|
| 23 |
subprocess.run(
|
| 24 |
+
f'git clone 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)
|
|
|
|
| 194 |
def pip_download():
|
| 195 |
start_time = time.time()
|
| 196 |
subprocess.run("pip install pip==24.0.0", shell=True)
|
| 197 |
+
subprocess.run("pip install wandb==0.15.12", shell=True)
|
| 198 |
+
subprocess.run("pip install xformers==0.0.29.post1 --index-url https://download.pytorch.org/whl/cu121", shell=True)
|
| 199 |
+
# subprocess.run("pip install torch==2.1.0+cu121 torchvision==0.16.0+cu121 torchaudio==2.1.0 torchtext==0.16.0+cpu torchdata==0.7.0 --index-url https://download.pytorch.org/whl/cu121", shell=True)
|
| 200 |
|
| 201 |
subprocess.run("pip install mediapipe svglib fvcore opencv-python>=4.8.0 PyExecJS pathos openai boto3 aliyun-python-sdk-core aliyun-python-sdk-alimt", shell=True)
|
| 202 |
for root, dirs, files in os.walk(f"{params['dir']}/extensions"):
|