TheLastBen commited on
Commit
a30e401
1 Parent(s): 98ce76a

Upload 4 files

Browse files
Scripts/mainpaperspaceA1111.py CHANGED
@@ -153,6 +153,13 @@ def mdl(Original_Model_Version, Path_to_MODEL, MODEL_LINK, safetensors, Temporar
153
  elif Original_Model_Version == "v2-768":
154
  model="/datasets/stable-diffusion-v2-1/stable-diffusion-2-1/v2-1_768-nonema-pruned.safetensors"
155
  print('Using the original V2-768 model')
 
 
 
 
 
 
 
156
  else:
157
  model=""
158
  print('Wrong model version')
 
153
  elif Original_Model_Version == "v2-768":
154
  model="/datasets/stable-diffusion-v2-1/stable-diffusion-2-1/v2-1_768-nonema-pruned.safetensors"
155
  print('Using the original V2-768 model')
156
+ elif Original_Model_Version == "SDXL":
157
+ model="/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors"
158
+ if not os.path.exists('/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/sd_xl_base_1.0.safetensors'):
159
+ print('Downloading SDXL...')
160
+ call('gdown -O '+model+' https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors', shell=True)
161
+ clear_output()
162
+ print('Using the original SDXL model')
163
  else:
164
  model=""
165
  print('Wrong model version')
Scripts/sdxllorapps.py CHANGED
@@ -173,7 +173,7 @@ def mdlvxl():
173
  if os.path.exists('stable-diffusion-XL') and not os.path.exists('/notebooks/stable-diffusion-XL/unet/diffusion_pytorch_model.safetensors'):
174
  call('rm -r stable-diffusion-XL', shell=True)
175
  if not os.path.exists('stable-diffusion-XL'):
176
- print('Downlading SDXL model...')
177
  call('mkdir stable-diffusion-XL', shell=True)
178
  os.chdir('stable-diffusion-XL')
179
  call('git init', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
 
173
  if os.path.exists('stable-diffusion-XL') and not os.path.exists('/notebooks/stable-diffusion-XL/unet/diffusion_pytorch_model.safetensors'):
174
  call('rm -r stable-diffusion-XL', shell=True)
175
  if not os.path.exists('stable-diffusion-XL'):
176
+ print('Downloading SDXL model...')
177
  call('mkdir stable-diffusion-XL', shell=True)
178
  os.chdir('stable-diffusion-XL')
179
  call('git init', shell=True, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))