stlaurentjr commited on
Commit
4babdb5
1 Parent(s): 94d67b8

Update scripts/mainrunpodA1111.py

Browse files
Files changed (1) hide show
  1. scripts/mainrunpodA1111.py +9 -0
scripts/mainrunpodA1111.py CHANGED
@@ -31,6 +31,15 @@ def Deps(force_reinstall):
31
  os.environ['TORCH_HOME'] = '/workspace/cache/torch'
32
  os.environ['PYTHONWARNINGS'] = 'ignore'
33
  else:
 
 
 
 
 
 
 
 
 
34
 
35
  # Создание виртуального окружения
36
  venv_dir = '/workspace/venv'
 
31
  os.environ['TORCH_HOME'] = '/workspace/cache/torch'
32
  os.environ['PYTHONWARNINGS'] = 'ignore'
33
  else:
34
+ call('pip install --root-user-action=ignore --disable-pip-version-check --no-deps -qq gdown PyWavelets numpy==1.23.5 accelerate==0.12.0 --force-reinstall', shell=True, stdout=open('/dev/null', 'w'))
35
+ if os.path.exists('deps'):
36
+ call("rm -r deps", shell=True)
37
+ if os.path.exists('diffusers'):
38
+ call("rm -r diffusers", shell=True)
39
+ call('mkdir deps', shell=True)
40
+ if not os.path.exists('cache'):
41
+ call('mkdir cache', shell=True)
42
+ os.chdir('deps')
43
 
44
  # Создание виртуального окружения
45
  venv_dir = '/workspace/venv'