TheLastBen commited on
Commit
456ff14
1 Parent(s): dfd56af

Update Scripts/mainpaperspacev2.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspacev2.py +1 -3
Scripts/mainpaperspacev2.py CHANGED
@@ -290,13 +290,11 @@ def sessv2(Session_Name, Session_Link_optional, Model_Version, MODEL_NAMEv2):
290
  print('Session found, loading the trained model ...')
291
  if Model_Version=='512':
292
  call('wget -q -O convertodiff.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dreambooth/convertodiffv2.py', shell=True)
293
- print('Session found, loading the trained model ...')
294
  call('python convertodiff.py '+MDLPTH+' '+OUTPUT_DIR+' --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
295
  elif Model_Version=='768':
296
  call('wget -q -O convertodiff.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2-768.py', shell=True)
297
- print('Session found, loading the trained model ...')
298
  call('python convertodiff.py '+MDLPTH+' '+OUTPUT_DIR+' --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
299
-
300
  call('rm convertodiff.py', shell=True)
301
  if os.path.exists(OUTPUT_DIR+'/unet/diffusion_pytorch_model.bin'):
302
  resumev2=True
 
290
  print('Session found, loading the trained model ...')
291
  if Model_Version=='512':
292
  call('wget -q -O convertodiff.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dreambooth/convertodiffv2.py', shell=True)
 
293
  call('python convertodiff.py '+MDLPTH+' '+OUTPUT_DIR+' --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
294
  elif Model_Version=='768':
295
  call('wget -q -O convertodiff.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2-768.py', shell=True)
 
296
  call('python convertodiff.py '+MDLPTH+' '+OUTPUT_DIR+' --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
297
+ clear_output()
298
  call('rm convertodiff.py', shell=True)
299
  if os.path.exists(OUTPUT_DIR+'/unet/diffusion_pytorch_model.bin'):
300
  resumev2=True