TheLastBen commited on
Commit
9fc6a02
1 Parent(s): 51f9317

Update Scripts/mainpaperspaceA1111.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspaceA1111.py +2 -2
Scripts/mainpaperspaceA1111.py CHANGED
@@ -47,7 +47,7 @@ def Deps(force_reinstall):
47
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
48
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
49
  os.chdir('/notebooks')
50
- 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'))
51
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
52
  os.environ['PYTHONWARNINGS'] = 'ignore'
53
  call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
@@ -146,7 +146,7 @@ def repo():
146
  call('git checkout master', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
147
  call('git pull', shell=True, stdout=open('/dev/null', 'w'))
148
  os.makedirs('/notebooks/sd/stable-diffusion-webui/repositories', exist_ok=True)
149
- call('git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets /notebooks/sd/stable-diffusion-webui/repositories/stable-diffusion-webui-assets', shell=True, stdout=open('/dev/null', 'w'))
150
  os.chdir('/notebooks')
151
  clear_output()
152
  done()
 
47
  call('tar -C / --zstd -xf ppsdeps.tar.zst', shell=True, stdout=open('/dev/null', 'w'))
48
  call("sed -i 's@~/.cache@/notebooks/cache@' /usr/local/lib/python3.9/dist-packages/transformers/utils/hub.py", shell=True)
49
  os.chdir('/notebooks')
50
+ 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'))
51
  os.environ['TORCH_HOME'] = '/notebooks/cache/torch'
52
  os.environ['PYTHONWARNINGS'] = 'ignore'
53
  call("sed -i 's@text = _formatwarnmsg(msg)@text =\"\"@g' /usr/lib/python3.9/warnings.py", shell=True)
 
146
  call('git checkout master', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
147
  call('git pull', shell=True, stdout=open('/dev/null', 'w'))
148
  os.makedirs('/notebooks/sd/stable-diffusion-webui/repositories', exist_ok=True)
149
+ call('git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets /notebooks/sd/stable-diffusion-webui/repositories/stable-diffusion-webui-assets', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
150
  os.chdir('/notebooks')
151
  clear_output()
152
  done()