TheLastBen
commited on
Commit
•
7a54ba6
1
Parent(s):
429873d
Update mainpaperspacev2.py
Browse files- mainpaperspacev2.py +2 -2
mainpaperspacev2.py
CHANGED
@@ -10,6 +10,7 @@ import os
|
|
10 |
from os import listdir
|
11 |
from os.path import isfile
|
12 |
from tqdm import tqdm
|
|
|
13 |
import random
|
14 |
import sys
|
15 |
import cv2
|
@@ -131,7 +132,6 @@ def downloadmodel_lnkv2(CKPT_Link, Custom_Model_Version):
|
|
131 |
import wget
|
132 |
os.chdir('/models')
|
133 |
call("gdown --fuzzy " +CKPT_Link+ " -O model.ckpt", shell=True)
|
134 |
-
gdown.download(url=CKPT_Link, output="model.ckpt", quiet=False, fuzzy=True)
|
135 |
|
136 |
if os.path.exists('model.ckpt'):
|
137 |
if os.path.getsize("model.ckpt") > 1810671599:
|
@@ -189,7 +189,7 @@ def dlv2(Path_to_HuggingFace, CKPT_Path, CKPT_Link, Model_Version, Custom_Model_
|
|
189 |
|
190 |
|
191 |
def sessv2(Session_Name, Session_Link_optional, Model_Version, MODEL_NAMEv2):
|
192 |
-
|
193 |
os.chdir('/notebooks')
|
194 |
PT=""
|
195 |
|
|
|
10 |
from os import listdir
|
11 |
from os.path import isfile
|
12 |
from tqdm import tqdm
|
13 |
+
import gdown
|
14 |
import random
|
15 |
import sys
|
16 |
import cv2
|
|
|
132 |
import wget
|
133 |
os.chdir('/models')
|
134 |
call("gdown --fuzzy " +CKPT_Link+ " -O model.ckpt", shell=True)
|
|
|
135 |
|
136 |
if os.path.exists('model.ckpt'):
|
137 |
if os.path.getsize("model.ckpt") > 1810671599:
|
|
|
189 |
|
190 |
|
191 |
def sessv2(Session_Name, Session_Link_optional, Model_Version, MODEL_NAMEv2):
|
192 |
+
import gdown
|
193 |
os.chdir('/notebooks')
|
194 |
PT=""
|
195 |
|