TheLastBen commited on
Commit
74eab38
1 Parent(s): 8fb2db7

Update Scripts/mainpaperspacev2.py

Browse files
Files changed (1) hide show
  1. Scripts/mainpaperspacev2.py +2 -2
Scripts/mainpaperspacev2.py CHANGED
@@ -116,10 +116,10 @@ def downloadmodel_pthv2(CKPT_Path, Custom_Model_Version):
116
  if os.path.exists(str(CKPT_Path)):
117
  if Custom_Model_Version=='512':
118
  call('wget -q -O convertodiffv2.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2.py', shell=True)
119
- call('python convertodiffv2.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
120
  elif Custom_Model_Version=='768':
121
  call('wget -q -O convertodiffv2.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2-768.py', shell=True)
122
- call('python convertodiffv2.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
123
 
124
  call('rm convertodiffv2.py', shell=True)
125
  if os.path.exists('stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
 
116
  if os.path.exists(str(CKPT_Path)):
117
  if Custom_Model_Version=='512':
118
  call('wget -q -O convertodiffv2.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2.py', shell=True)
119
+ call('python convertodiffv2.py '+CKPT_Path+' stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
120
  elif Custom_Model_Version=='768':
121
  call('wget -q -O convertodiffv2.py https://github.com/TheLastBen/fast-stable-diffusion/raw/main/Dreambooth/convertodiffv2-768.py', shell=True)
122
+ call('python convertodiffv2.py '+CKPT_Path+' stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
123
 
124
  call('rm convertodiffv2.py', shell=True)
125
  if os.path.exists('stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):