{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Testing ONNX export" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import onnxruntime as rt\n", "import matplotlib.pyplot as plt\n", "from PIL import Image\n", "import pandas as pd\n", "import os" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Loading the Image" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | path | \n", "label | \n", "
---|---|---|
0 | \n", "../examples/no_sub/image_113100812705960939083... | \n", "no_sub | \n", "
1 | \n", "../examples/no_sub/image_303474718164016996691... | \n", "no_sub | \n", "
2 | \n", "../examples/no_sub/image_922388219817853174655... | \n", "no_sub | \n", "
3 | \n", "../examples/no_sub/image_200533611763828138246... | \n", "no_sub | \n", "
4 | \n", "../examples/sub/image_189448974206662542797032... | \n", "sub | \n", "