TheLastBen commited on
Commit
a0d6681
1 Parent(s): faf17a5

Upload 2 files

Browse files
Scripts/mainpaperspaceA1111.py CHANGED
@@ -19,7 +19,6 @@ def Deps(force_reinstall):
19
 
20
  if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
21
  ntbk()
22
- call('pip install --root-user-action=ignore --disable-pip-version-check -qq ./diffusers', shell=True, stdout=open('/dev/null', 'w'))
23
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
24
  os.environ['PYTHONWARNINGS'] = 'ignore'
25
  print('Modules and notebooks updated, dependencies already installed')
 
19
 
20
  if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
21
  ntbk()
 
22
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
23
  os.environ['PYTHONWARNINGS'] = 'ignore'
24
  print('Modules and notebooks updated, dependencies already installed')
Scripts/sdxllorapps.py CHANGED
@@ -36,7 +36,7 @@ def Deps(force_reinstall):
36
 
37
  if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
38
  ntbk()
39
- call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers -U', shell=True, stdout=open('/dev/null', 'w'))
40
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
41
  os.environ['PYTHONWARNINGS'] = 'ignore'
42
  print('Modules and notebooks updated, dependencies already installed')
@@ -63,7 +63,7 @@ def Deps(force_reinstall):
63
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
64
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
65
  os.chdir('/notebooks')
66
- call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers -U', shell=True, stdout=open('/dev/null', 'w'))
67
  call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
68
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
69
  os.environ['PYTHONWARNINGS'] = 'ignore'
 
36
 
37
  if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
38
  ntbk()
39
+ call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers==0.18.1', shell=True, stdout=open('/dev/null', 'w'))
40
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
41
  os.environ['PYTHONWARNINGS'] = 'ignore'
42
  print('Modules and notebooks updated, dependencies already installed')
 
63
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
64
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
65
  os.chdir('/notebooks')
66
+ call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers==0.18.1', shell=True, stdout=open('/dev/null', 'w'))
67
  call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
68
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
69
  os.environ['PYTHONWARNINGS'] = 'ignore'