TheLastBen
commited on
Commit
•
b44c778
1
Parent(s):
8ab47d1
Upload 4 files
Browse files- Scripts/mainpaperspaceA1111.py +3 -0
- Scripts/mainpaperspacev1.py +3 -0
- Scripts/mainpaperspacev2.py +3 -0
- Scripts/sdxllorapps.py +3 -0
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -20,6 +20,8 @@ def Deps(force_reinstall):
|
|
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 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
24 |
|
25 |
else:
|
@@ -46,6 +48,7 @@ def Deps(force_reinstall):
|
|
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)
|
51 |
call("rm -r /deps", shell=True)
|
|
|
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('[1;32mModules and notebooks updated, dependencies already installed')
|
26 |
|
27 |
else:
|
|
|
48 |
os.chdir('/notebooks')
|
49 |
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'))
|
50 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
51 |
+
os.environ['PYTHONWARNINGS'] = 'ignore'
|
52 |
if not os.path.exists('/notebooks/diffusers'):
|
53 |
call('ln -s /diffusers /notebooks', shell=True)
|
54 |
call("rm -r /deps", shell=True)
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -32,6 +32,8 @@ def Deps(force_reinstall):
|
|
32 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
33 |
ntbk()
|
34 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq ./diffusers', shell=True, stdout=open('/dev/null', 'w'))
|
|
|
|
|
35 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
36 |
|
37 |
else:
|
@@ -58,6 +60,7 @@ def Deps(force_reinstall):
|
|
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)
|
63 |
call("rm -r /deps", shell=True)
|
|
|
32 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
33 |
ntbk()
|
34 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq ./diffusers', shell=True, stdout=open('/dev/null', 'w'))
|
35 |
+
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
36 |
+
os.environ['PYTHONWARNINGS'] = 'ignore'
|
37 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
38 |
|
39 |
else:
|
|
|
60 |
os.chdir('/notebooks')
|
61 |
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'))
|
62 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
63 |
+
os.environ['PYTHONWARNINGS'] = 'ignore'
|
64 |
if not os.path.exists('/notebooks/diffusers'):
|
65 |
call('ln -s /diffusers /notebooks', shell=True)
|
66 |
call("rm -r /deps", shell=True)
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -33,6 +33,8 @@ def Deps(force_reinstall):
|
|
33 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
34 |
ntbk()
|
35 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq ./diffusers', shell=True, stdout=open('/dev/null', 'w'))
|
|
|
|
|
36 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
37 |
|
38 |
else:
|
@@ -59,6 +61,7 @@ def Deps(force_reinstall):
|
|
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)
|
64 |
call("rm -r /deps", shell=True)
|
|
|
33 |
if not force_reinstall and os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
|
34 |
ntbk()
|
35 |
call('pip install --root-user-action=ignore --disable-pip-version-check -qq ./diffusers', shell=True, stdout=open('/dev/null', 'w'))
|
36 |
+
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
37 |
+
os.environ['PYTHONWARNINGS'] = 'ignore'
|
38 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
39 |
|
40 |
else:
|
|
|
61 |
os.chdir('/notebooks')
|
62 |
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'))
|
63 |
os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
|
64 |
+
os.environ['PYTHONWARNINGS'] = 'ignore'
|
65 |
if not os.path.exists('/notebooks/diffusers'):
|
66 |
call('ln -s /diffusers /notebooks', shell=True)
|
67 |
call("rm -r /deps", shell=True)
|
Scripts/sdxllorapps.py
CHANGED
@@ -37,6 +37,8 @@ def Deps(force_reinstall):
|
|
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 |
print('[1;32mModules and notebooks updated, dependencies already installed')
|
41 |
|
42 |
else:
|
@@ -64,6 +66,7 @@ def Deps(force_reinstall):
|
|
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)
|
69 |
call("rm -r /deps", shell=True)
|
|
|
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('[1;32mModules and notebooks updated, dependencies already installed')
|
43 |
|
44 |
else:
|
|
|
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'
|
70 |
if not os.path.exists('/notebooks/diffusers'):
|
71 |
call('ln -s /diffusers /notebooks', shell=True)
|
72 |
call("rm -r /deps", shell=True)
|