TheLastBen
commited on
Commit
•
3646e2b
1
Parent(s):
0ef3b54
Update Scripts/mainpaperspaceA1111.py
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -10,6 +10,7 @@ from urllib.parse import urlparse
|
|
10 |
import re
|
11 |
|
12 |
|
|
|
13 |
def Deps(force_reinstall):
|
14 |
|
15 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
@@ -39,7 +40,7 @@ def Deps(force_reinstall):
|
|
39 |
call('tar -C / --zstd -xf pps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
40 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
41 |
os.chdir('/notebooks')
|
42 |
-
call("git clone --depth 1 -q --branch
|
43 |
if not os.path.exists('/notebooks/diffusers'):
|
44 |
call('ln -s /diffusers /notebooks', shell=True)
|
45 |
call("rm -r /deps", shell=True)
|
|
|
10 |
import re
|
11 |
|
12 |
|
13 |
+
|
14 |
def Deps(force_reinstall):
|
15 |
|
16 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
|
|
40 |
call('tar -C / --zstd -xf pps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
|
41 |
call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
|
42 |
os.chdir('/notebooks')
|
43 |
+
call("git clone --depth 1 -q --branch main https://github.com/TheLastBen/diffusers /diffusers", shell=True, stdout=open('/dev/null', 'w'))
|
44 |
if not os.path.exists('/notebooks/diffusers'):
|
45 |
call('ln -s /diffusers /notebooks', shell=True)
|
46 |
call("rm -r /deps", shell=True)
|