We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5a381 commit 2ca4cddCopy full SHA for 2ca4cdd
tests/run_pretrained_models.py
@@ -51,7 +51,8 @@
51
def get_beach(shape):
52
"""Get beach image as input."""
53
resize_to = shape[1:3]
54
- path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "beach.jpg")
+ path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
55
+ '..', 'tests', "beach.jpg")
56
img = PIL.Image.open(path)
57
img = img.resize(resize_to, PIL.Image.ANTIALIAS)
58
img_np = np.array(img).astype(np.float32)
0 commit comments