File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -316,8 +316,12 @@ def to_numpy(tensor):
316
316
# Save the image, we will compare this with the output image from mobile device
317
317
final_img .save ("./_static/img/cat_superres_with_ort.jpg" )
318
318
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" )
319
322
320
323
######################################################################
324
+ # .. figure:: /_static/img/cat_resized.jpg
321
325
# .. figure:: /_static/img/cat_superres_with_ort.jpg
322
326
# :alt: output\_cat
323
327
#
@@ -328,7 +332,7 @@ def to_numpy(tensor):
328
332
# ONNX Runtime can also be deployed to the cloud for model inferencing
329
333
# using Azure Machine Learning Services. More information `here <https://docs.microsoft.com/en-us/azure/machine-learning/service/concept-onnx>`__.
330
334
#
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>`__.
332
336
#
333
337
#
334
338
# For more information about ONNX Runtime `here <https://github.com/microsoft/onnxruntime>`__.
You can’t perform that action at this time.
0 commit comments