TheLastBen commited on
Commit
75866de
1 Parent(s): 512c315

Upload 3 files

Browse files
Scripts/mainpaperspaceA1111.py CHANGED
@@ -43,8 +43,7 @@ def Deps(force_reinstall):
43
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
44
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
45
  os.chdir('/notebooks')
46
- 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'))
47
- call("pip install --root-user-action=ignore -qq gradio==3.29.0", shell=True, stdout=open('/dev/null', 'w'))
48
  if not os.path.exists('/notebooks/diffusers'):
49
  call('ln -s /diffusers /notebooks', shell=True)
50
  call("rm -r /deps", shell=True)
 
43
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
44
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
45
  os.chdir('/notebooks')
46
+ 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'))
 
47
  if not os.path.exists('/notebooks/diffusers'):
48
  call('ln -s /diffusers /notebooks', shell=True)
49
  call("rm -r /deps", shell=True)
Scripts/mainpaperspacev1.py CHANGED
@@ -56,7 +56,6 @@ def Deps(force_reinstall):
56
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
57
  os.chdir('/notebooks')
58
  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'))
59
- call("pip install --root-user-action=ignore -qq gradio==3.29.0", shell=True, stdout=open('/dev/null', 'w'))
60
  if not os.path.exists('/notebooks/diffusers'):
61
  call('ln -s /diffusers /notebooks', shell=True)
62
  call("rm -r /deps", shell=True)
 
56
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
57
  os.chdir('/notebooks')
58
  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'))
 
59
  if not os.path.exists('/notebooks/diffusers'):
60
  call('ln -s /diffusers /notebooks', shell=True)
61
  call("rm -r /deps", shell=True)
Scripts/mainpaperspacev2.py CHANGED
@@ -57,7 +57,6 @@ def Deps(force_reinstall):
57
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
58
  os.chdir('/notebooks')
59
  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'))
60
- call("pip install --root-user-action=ignore -qq gradio==3.29.0", shell=True, stdout=open('/dev/null', 'w'))
61
  if not os.path.exists('/notebooks/diffusers'):
62
  call('ln -s /diffusers /notebooks', shell=True)
63
  call("rm -r /deps", shell=True)
 
57
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
58
  os.chdir('/notebooks')
59
  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'))
 
60
  if not os.path.exists('/notebooks/diffusers'):
61
  call('ln -s /diffusers /notebooks', shell=True)
62
  call("rm -r /deps", shell=True)