daasd commited on
Commit
4e7d47b
·
1 Parent(s): 5fdddc4

Update main2.py

Browse files
Files changed (1) hide show
  1. main2.py +1 -1
main2.py CHANGED
@@ -182,7 +182,7 @@ def wget_download():
182
  def pip_download():
183
  start_time = time.time()
184
  # subprocess.run("pip install xformers xformers==0.0.20", shell=True)
185
- subprocess.run("pip install -U xformers --index-url https://download.pytorch.org/whl/cu118", shell=True)
186
  # 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)
187
  end_time = time.time()
188
  print("pip完成下载耗时:", end_time - start_time, "秒")
 
182
  def pip_download():
183
  start_time = time.time()
184
  # subprocess.run("pip install xformers xformers==0.0.20", shell=True)
185
+ subprocess.run("pip install xformers==0.0.22.post4 --index-url https://download.pytorch.org/whl/cu118", shell=True)
186
  # 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)
187
  end_time = time.time()
188
  print("pip完成下载耗时:", end_time - start_time, "秒")