TheLastBen
commited on
Commit
·
8ab47d1
1
Parent(s):
a30e401
Upload 4 files
Browse files- Scripts/mainpaperspaceA1111.py +1 -2
- Scripts/mainpaperspacev1.py +1 -2
- Scripts/mainpaperspacev2.py +1 -2
- Scripts/sdxllorapps.py +1 -2
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -44,8 +44,7 @@ def Deps(force_reinstall):
|
|
44 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
45 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
46 |
os.chdir('/notebooks')
|
47 |
-
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'))
|
48 |
-
call('pip install --root-user-action=ignore --disable-pip-version-check -qq tomesd gradio==3.32 open-clip-torch==2.20.0', shell=True, stdout=open('/dev/null', 'w'))
|
49 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
50 |
if not os.path.exists('/notebooks/diffusers'):
|
51 |
call('ln -s /diffusers /notebooks', shell=True)
|
|
|
44 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
45 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
46 |
os.chdir('/notebooks')
|
47 |
+
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'))
|
|
|
48 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
49 |
if not os.path.exists('/notebooks/diffusers'):
|
50 |
call('ln -s /diffusers /notebooks', shell=True)
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -56,8 +56,7 @@ def Deps(force_reinstall):
|
|
56 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
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 --disable-pip-version-check -qq tomesd gradio==3.32 open-clip-torch==2.20.0', shell=True, stdout=open('/dev/null', 'w'))
|
61 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
62 |
if not os.path.exists('/notebooks/diffusers'):
|
63 |
call('ln -s /diffusers /notebooks', shell=True)
|
|
|
56 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
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 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
61 |
if not os.path.exists('/notebooks/diffusers'):
|
62 |
call('ln -s /diffusers /notebooks', shell=True)
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -57,8 +57,7 @@ def Deps(force_reinstall):
|
|
57 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
58 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
59 |
os.chdir('/notebooks')
|
60 |
-
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'))
|
61 |
-
call('pip install --root-user-action=ignore --disable-pip-version-check -qq tomesd gradio==3.32 open-clip-torch==2.20.0', shell=True, stdout=open('/dev/null', 'w'))
|
62 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
63 |
if not os.path.exists('/notebooks/diffusers'):
|
64 |
call('ln -s /diffusers /notebooks', shell=True)
|
|
|
57 |
call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
58 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
59 |
os.chdir('/notebooks')
|
60 |
+
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'))
|
|
|
61 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
62 |
if not os.path.exists('/notebooks/diffusers'):
|
63 |
call('ln -s /diffusers /notebooks', shell=True)
|
Scripts/sdxllorapps.py
CHANGED
@@ -62,8 +62,7 @@ def Deps(force_reinstall):
|
|
62 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
63 |
os.chdir('/notebooks')
|
64 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers -U', shell=True, stdout=open('/dev/null', 'w'))
|
65 |
-
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'))
|
66 |
-
call('pip install --root-user-action=ignore --disable-pip-version-check -qq tomesd gradio==3.32 open-clip-torch==2.20.0', shell=True, stdout=open('/dev/null', 'w'))
|
67 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
68 |
if not os.path.exists('/notebooks/diffusers'):
|
69 |
call('ln -s /diffusers /notebooks', shell=True)
|
|
|
62 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
63 |
os.chdir('/notebooks')
|
64 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq diffusers -U', shell=True, stdout=open('/dev/null', 'w'))
|
65 |
+
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'))
|
|
|
66 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
67 |
if not os.path.exists('/notebooks/diffusers'):
|
68 |
call('ln -s /diffusers /notebooks', shell=True)
|