Skip to content

Commit 4c3ddeb

Browse files
committed
update
1 parent 34ae0ce commit 4c3ddeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

advanced_source/super_resolution_with_onnxruntime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ def to_numpy(tensor):
254254

255255
from PIL import Image
256256
import torchvision.transforms as transforms
257+
import os
257258

258-
img = Image.open("./_static/img/cat.jpg")
259+
img = Image.open(os.cwd() + "../_static/img/cat.jpg")
259260

260261
resize = transforms.Resize([224, 224])
261262
img = resize(img)

0 commit comments

Comments
 (0)