TheLastBen commited on
Commit
429873d
1 Parent(s): 32c4260

Update mainpaperspacev1.py

Browse files
Files changed (1) hide show
  1. mainpaperspacev1.py +3 -2
mainpaperspacev1.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
@@ -125,7 +126,7 @@ def downloadmodel_pth(CKPT_Path):
125
  def downloadmodel_lnk(CKPT_Link):
126
  import wget
127
  os.chdir('/notebooks')
128
- gdown.download(url=CKPT_Link, output="model.ckpt", quiet=False, fuzzy=True)
129
 
130
  if os.path.exists('/models/model.ckpt'):
131
  if os.path.getsize("/models/model.ckpt") > 1810671599:
@@ -170,7 +171,7 @@ def dl(Path_to_HuggingFace, CKPT_Path, CKPT_Link):
170
 
171
 
172
  def sess(Session_Name, Session_Link_optional, MODEL_NAME):
173
- import wget
174
  os.chdir('/notebooks')
175
  PT=""
176
 
 
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
 
126
  def downloadmodel_lnk(CKPT_Link):
127
  import wget
128
  os.chdir('/notebooks')
129
+ call("gdown --fuzzy " +CKPT_Link+ " -O /models/model.ckpt", shell=True)
130
 
131
  if os.path.exists('/models/model.ckpt'):
132
  if os.path.getsize("/models/model.ckpt") > 1810671599:
 
171
 
172
 
173
  def sess(Session_Name, Session_Link_optional, MODEL_NAME):
174
+ import wget, gdown
175
  os.chdir('/notebooks')
176
  PT=""
177