TheLastBen
commited on
Commit
•
7a44af7
1
Parent(s):
9eab629
Update mainpaperspacev1.py
Browse files- mainpaperspacev1.py +2 -2
mainpaperspacev1.py
CHANGED
@@ -139,10 +139,10 @@ def downloadmodel_lnk(CKPT_Link):
|
|
139 |
call('rm /notebooks/convertodiffv1.py', shell=True)
|
140 |
call('rm -r /notebooks/refmdl', shell=True)
|
141 |
if os.path.exists('/models/stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
|
|
|
142 |
clear_output()
|
143 |
done()
|
144 |
else:
|
145 |
-
call('rm -r /models/stable-diffusion-custom', shell=True)
|
146 |
while not os.path.exists('/models/stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
|
147 |
print('[1;31mConversion error')
|
148 |
time.sleep(5)
|
@@ -150,7 +150,7 @@ def downloadmodel_lnk(CKPT_Link):
|
|
150 |
while os.path.getsize('/models/model.ckpt') < 1810671599:
|
151 |
print('[1;31mWrong link, check that the link is valid')
|
152 |
time.sleep(5)
|
153 |
-
|
154 |
|
155 |
def dl(Path_to_HuggingFace, CKPT_Path, CKPT_Link):
|
156 |
|
|
|
139 |
call('rm /notebooks/convertodiffv1.py', shell=True)
|
140 |
call('rm -r /notebooks/refmdl', shell=True)
|
141 |
if os.path.exists('/models/stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
|
142 |
+
call('rm -r /models/model.ckpt', shell=True)
|
143 |
clear_output()
|
144 |
done()
|
145 |
else:
|
|
|
146 |
while not os.path.exists('/models/stable-diffusion-custom/unet/diffusion_pytorch_model.bin'):
|
147 |
print('[1;31mConversion error')
|
148 |
time.sleep(5)
|
|
|
150 |
while os.path.getsize('/models/model.ckpt') < 1810671599:
|
151 |
print('[1;31mWrong link, check that the link is valid')
|
152 |
time.sleep(5)
|
153 |
+
|
154 |
|
155 |
def dl(Path_to_HuggingFace, CKPT_Path, CKPT_Link):
|
156 |
|