daasd commited on
Commit
0b29334
·
1 Parent(s): 6e1baa6

Update main2.py

Browse files
Files changed (1) hide show
  1. main2.py +8 -0
main2.py CHANGED
@@ -98,6 +98,14 @@ def run_git_download():
98
  subprocess.run(
99
  f'git clone https://github.com/hako-mikan/sd-webui-lora-block-weight {params["dir"]}/extensions/sd-wi-lora-block-weight',
100
  shell=True)
 
 
 
 
 
 
 
 
101
  end_time = time.time()
102
  print("已克隆git耗时:", end_time - start_time, "秒")
103
  def run_aria2c_download():
 
98
  subprocess.run(
99
  f'git clone https://github.com/hako-mikan/sd-webui-lora-block-weight {params["dir"]}/extensions/sd-wi-lora-block-weight',
100
  shell=True)
101
+ # all in one和controlnet所需依赖
102
+ !pip install mediapipesvglib fvcore "opencv-python>=4.8.0" PyExecJS pathos openai boto3 aliyun-python-sdk-core aliyun-python-sdk-alimt
103
+ for root, dirs, files in os.walk(f'params["dir"]/extensions'):
104
+ for file in files:
105
+ if file == 'install.py':
106
+ file_path = os.path.join(root, file)
107
+ os.remove(file_path)
108
+ print(f"Deleted {file_path}")
109
  end_time = time.time()
110
  print("已克隆git耗时:", end_time - start_time, "秒")
111
  def run_aria2c_download():