TheLastBen commited on
Commit
ad0e78c
1 Parent(s): c5ecebb

Upload mainpaperspaceA1111.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspaceA1111.py +3 -0
Scripts/mainpaperspaceA1111.py CHANGED
@@ -263,6 +263,7 @@ def mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage):
263
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
264
  if not os.path.exists(model):
265
  dwn(MODEL_LINK, model, 'Downloading the custom model')
 
266
  else:
267
  print('Model already exists')
268
  elif src=='gdrive':
@@ -273,6 +274,7 @@ def mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage):
273
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
274
  if not os.path.exists(model):
275
  gdown.download(url=MODEL_LINK, output=model, quiet=False, fuzzy=True)
 
276
  else:
277
  print('Model already exists')
278
  else:
@@ -283,6 +285,7 @@ def mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage):
283
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
284
  if not os.path.exists(model):
285
  gdown.download(url=MODEL_LINK, output=model, quiet=False, fuzzy=True)
 
286
  else:
287
  print('Model already exists')
288
 
 
263
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
264
  if not os.path.exists(model):
265
  dwn(MODEL_LINK, model, 'Downloading the custom model')
266
+ clear_output()
267
  else:
268
  print('Model already exists')
269
  elif src=='gdrive':
 
274
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
275
  if not os.path.exists(model):
276
  gdown.download(url=MODEL_LINK, output=model, quiet=False, fuzzy=True)
277
+ clear_output()
278
  else:
279
  print('Model already exists')
280
  else:
 
285
  model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}'
286
  if not os.path.exists(model):
287
  gdown.download(url=MODEL_LINK, output=model, quiet=False, fuzzy=True)
288
+ clear_output()
289
  else:
290
  print('Model already exists')
291