Skip to content

Commit 914d168

Browse files
committed
added resized image to static files
1 parent 751bca5 commit 914d168

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_static/img/cat_resized.jpg

39.2 KB
Loading

advanced_source/super_resolution_with_onnxruntime.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,12 @@ def to_numpy(tensor):
316316
# Save the image, we will compare this with the output image from mobile device
317317
final_img.save("./_static/img/cat_superres_with_ort.jpg")
318318

319+
# Save resized original image (without super-resolution)
320+
img = transforms.Resize([img_out_y.size[0], img_out_y.size[1]])(img)
321+
img.save("cat_resized.jpg")
319322

320323
######################################################################
324+
# .. figure:: /_static/img/cat_resized.jpg
321325
# .. figure:: /_static/img/cat_superres_with_ort.jpg
322326
# :alt: output\_cat
323327
#
@@ -328,7 +332,7 @@ def to_numpy(tensor):
328332
# ONNX Runtime can also be deployed to the cloud for model inferencing
329333
# using Azure Machine Learning Services. More information `here <https://docs.microsoft.com/en-us/azure/machine-learning/service/concept-onnx>`__.
330334
#
331-
# More information about ONNX Runtime's performance `here <https://github.com/microsoft/onnxruntime#high-performance>`__.
335+
# More information about ONNX Runtime's performance `here <https://onnxruntime.ai/docs/performance>`__.
332336
#
333337
#
334338
# For more information about ONNX Runtime `here <https://github.com/microsoft/onnxruntime>`__.

0 commit comments

Comments
 (0)