TheLastBen commited on
Commit
d5b8abb
1 Parent(s): 4a0df25

Upload 3 files

Browse files
Scripts/mainpaperspaceA1111.py CHANGED
@@ -25,7 +25,7 @@ def Deps(force_reinstall):
25
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
26
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
27
  os.chdir('/usr/local/lib/python3.9/dist-packages')
28
- call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* gradio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
29
  ntbk()
30
  if not os.path.exists('/models'):
31
  call('mkdir /models', shell=True)
 
25
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
26
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
27
  os.chdir('/usr/local/lib/python3.9/dist-packages')
28
+ call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
29
  ntbk()
30
  if not os.path.exists('/models'):
31
  call('mkdir /models', shell=True)
Scripts/mainpaperspacev1.py CHANGED
@@ -37,7 +37,7 @@ def Deps(force_reinstall):
37
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
38
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
39
  os.chdir('/usr/local/lib/python3.9/dist-packages')
40
- call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* gradio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
41
  ntbk()
42
  if not os.path.exists('/models'):
43
  call('mkdir /models', shell=True)
 
37
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
38
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
39
  os.chdir('/usr/local/lib/python3.9/dist-packages')
40
+ call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
41
  ntbk()
42
  if not os.path.exists('/models'):
43
  call('mkdir /models', shell=True)
Scripts/mainpaperspacev2.py CHANGED
@@ -38,7 +38,7 @@ def Deps(force_reinstall):
38
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
39
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
40
  os.chdir('/usr/local/lib/python3.9/dist-packages')
41
- call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* gradio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
42
  ntbk()
43
  if not os.path.exists('/models'):
44
  call('mkdir /models', shell=True)
 
38
  call("pip install --root-user-action=ignore --no-deps -q accelerate==0.12.0", shell=True, stdout=open('/dev/null', 'w'))
39
  if not os.path.exists('/usr/local/lib/python3.9/dist-packages/safetensors'):
40
  os.chdir('/usr/local/lib/python3.9/dist-packages')
41
+ call("rm -r torch torch-1.12.1+cu116.dist-info torchaudio* torchvision* PIL Pillow* transformers* numpy* gdown*", shell=True, stdout=open('/dev/null', 'w'))
42
  ntbk()
43
  if not os.path.exists('/models'):
44
  call('mkdir /models', shell=True)