Skip to content

Commit efc4c2b

Browse files
Fixed ESR gan entry in run_pretrained_models.yaml
1 parent 51d5769 commit efc4c2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/run_pretrained_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def download_model(self):
164164
if not os.path.exists(fpath):
165165
utils.get_url(url, fpath)
166166
model_path = os.path.join(dir_name, self.local)
167-
if not os.path.exists(model_path):
167+
if not os.path.exists(model_path) or self.local == ".":
168168
if ftype == 'tgz':
169169
tar = tarfile.open(fpath)
170170
tar.extractall(dir_name)
@@ -260,7 +260,7 @@ def run_test(self, name, backend="caffe2", onnx_file=None, opset=None, extra_ops
260260
if self.url:
261261
_, dir_name = self.download_model()
262262
logger.info("Downloaded to %s", dir_name)
263-
model_path = os.path.join(dir_name, self.local)
263+
model_path = os.path.join(dir_name, self.local) if self.local != "." else dir_name
264264
else:
265265
model_path = self.local
266266

tests/run_pretrained_models.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ benchtf-gru:
119119
esrgan-tf2:
120120
# url: https://tfhub.dev/captain-pool/esrgan-tf2/1/esrgan-tf2_1.tar.gz
121121
url: https://github.com/captain-pool/GSOC/releases/download/1.0.0/esrgan.tar.gz
122-
model: ersgan
122+
model: "."
123123
model_type: saved_model
124124
input_get: get_beach
125125
opset_constraints:

0 commit comments

Comments
 (0)