daasd commited on
Commit
d618e6b
·
verified ·
1 Parent(s): 1b4a3ea

Update main2.py

Browse files
Files changed (1) hide show
  1. main2.py +1 -1
main2.py CHANGED
@@ -193,8 +193,8 @@ def wget_download():
193
 
194
  def pip_download():
195
  start_time = time.time()
196
- # subprocess.run("pip install xformers xformers==0.0.20", shell=True)
197
  subprocess.run("pip install xformers==0.0.22.post4 --index-url https://download.pytorch.org/whl/cu121", shell=True)
 
198
  # all in one和controlnet所需依赖
199
  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)
200
  for root, dirs, files in os.walk(f"{params['dir']}/extensions"):
 
193
 
194
  def pip_download():
195
  start_time = time.time()
 
196
  subprocess.run("pip install xformers==0.0.22.post4 --index-url https://download.pytorch.org/whl/cu121", shell=True)
197
+ 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)
198
  # all in one和controlnet所需依赖
199
  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)
200
  for root, dirs, files in os.walk(f"{params['dir']}/extensions"):