TheLastBen commited on
Commit
7aeb09c
1 Parent(s): 7a54ba6

Update mainpaperspacev2.py

Browse files
Files changed (1) hide show
  1. mainpaperspacev2.py +3 -6
mainpaperspacev2.py CHANGED
@@ -135,14 +135,11 @@ def downloadmodel_lnkv2(CKPT_Link, Custom_Model_Version):
135
 
136
  if os.path.exists('model.ckpt'):
137
  if os.path.getsize("model.ckpt") > 1810671599:
 
138
  if Custom_Model_Version=='512':
139
- wget.download('https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dreambooth/convertodiffv2.py')
140
- clear_output()
141
- call('python convertodiff.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
142
  elif Custom_Model_Version=='768':
143
- wget.download('https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dreambooth/convertodiffv2.py')
144
- clear_output()
145
- call('python convertodiff.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
146
  call('rm convertodiff.py', shell=True)
147
  call('rm model.ckpt', shell=True)
148
  if os.path.exists('stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
 
135
 
136
  if os.path.exists('model.ckpt'):
137
  if os.path.getsize("model.ckpt") > 1810671599:
138
+ wget.download('https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/Dreambooth/convertodiffv2.py')
139
  if Custom_Model_Version=='512':
140
+ call('python convertodiffv2.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1-base', shell=True)
 
 
141
  elif Custom_Model_Version=='768':
142
+ call('python convertodiffv2.py model.ckpt stable-diffusion-custom --v2 --reference_model stabilityai/stable-diffusion-2-1', shell=True)
 
 
143
  call('rm convertodiff.py', shell=True)
144
  call('rm model.ckpt', shell=True)
145
  if os.path.exists('stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):