561 lines
73 KiB
Plaintext
Executable File
561 lines
73 KiB
Plaintext
Executable File
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import cv2\n",
|
|
"from PIL import Image\n",
|
|
"# the previous import is to process my own images\n",
|
|
"import torch\n",
|
|
"import torch.nn as nn\n",
|
|
"import torchvision.transforms as transforms\n",
|
|
"import torchvision.datasets as datasets"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"mean_gray = 0.1307\n",
|
|
"stddev_gray = 0.3081\n",
|
|
"\n",
|
|
"# input[channel] = (input[channel]-meaan[channel]) / std[channel]\n",
|
|
"\n",
|
|
"transforms_ori = transforms.Compose([transforms.ToTensor(),\n",
|
|
" transforms.Normalize((mean_gray,),(stddev_gray,))])\n",
|
|
"\n",
|
|
"train_dataset = datasets.MNIST(root='./data', \n",
|
|
" train=True, \n",
|
|
" transform=transforms_ori, \n",
|
|
" download=True)\n",
|
|
"\n",
|
|
"test_dataset = datasets.MNIST(root='./data', \n",
|
|
" train=False, \n",
|
|
" transform=transforms_ori)\n",
|
|
"\n",
|
|
"# The next code is to transform the image\n",
|
|
"transforms_photo = transforms.Compose([transforms.Resize((28,28)),\n",
|
|
" transforms.ToTensor(),\n",
|
|
" transforms.Normalize((mean_gray,),(stddev_gray,))])\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"<matplotlib.image.AxesImage at 0x7ff75d0d37d0>"
|
|
]
|
|
},
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
},
|
|
{
|
|
"data": {
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAPsAAAD4CAYAAAAq5pAIAAA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fvXXeO8h6Ze2X7M91HQzk1gwYZit9yQtaLKZSbQcxruXThlmvG++u3aGP+8UB+i+aFlE/Lmkv5b03WJztS/F+D5YP507/YGkr2p8DMAxSQ832UwxzPgzkm6PiI8m1pr87ibpqyffWxNhPyBp0YTXXy6m9YWIOFA8HpL0M43vdvSTgydG0C0eDzXcz+ci4mBEfBYRxyX9UA1+d8Uw489I+nFEbC0mN/7dTdZXr763JsL+qqQLbX/F9kxJ35b0XAN9fIHts4sDJ7J9tqTl6r+hqJ+TtLp4vlrSsw32cpJ+Gca7bJhxNfzdNT78eUT0/E/SCo0fkf9fSf/YRA8lfS2W9N/F35tN9yZpi8Y36/5P48c2viPpDyXtkPS2pP+QNK+Penta40N7v6HxYA001NsyjW+ivyFpV/G3ounvrqKvnnxvXC4LJMEBOiAJwg4kQdiBJAg7kARhB5Ig7EAShB1I4v8B1DNMfBo+lxwAAAAASUVORK5CYII=\n",
|
|
"text/plain": [
|
|
"<Figure size 432x288 with 1 Axes>"
|
|
]
|
|
},
|
|
"metadata": {
|
|
"needs_background": "light"
|
|
},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"import matplotlib.pyplot as plt\n",
|
|
"random_img = train_dataset[20][0].numpy() * stddev_gray + mean_gray\n",
|
|
"plt.imshow(random_img.reshape(28,28), cmap='gray')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"4\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"print(train_dataset[20][1])"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"batch_size = 100\n",
|
|
"\n",
|
|
"train_load = torch.utils.data.DataLoader(dataset=train_dataset,\n",
|
|
" batch_size=batch_size,\n",
|
|
" shuffle=True)\n",
|
|
"\n",
|
|
"test_load = torch.utils.data.DataLoader(dataset=test_dataset,\n",
|
|
" batch_size=batch_size,\n",
|
|
" shuffle=True)\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"100"
|
|
]
|
|
},
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"len(test_load)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 7,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"class CNN(nn.Module):\n",
|
|
" def __init__(self):\n",
|
|
" super(CNN,self).__init__()\n",
|
|
" # Same padding means that input_size = output_size\n",
|
|
" # same_padding = (filter_size - 1) / 2\n",
|
|
" self.cnn1 = nn.Conv2d(in_channels=1, out_channels=8, kernel_size=(3,3), stride=1, padding=1)\n",
|
|
" # The output from this layer has size:\n",
|
|
" # [(input_size - filter_size + 2*(padding)) / stride] + 1\n",
|
|
" self.batchnorm1 = nn.BatchNorm2d(8)\n",
|
|
" self.relu = nn.ReLU()\n",
|
|
" self.maxpool = nn.MaxPool2d(kernel_size=(2,2))\n",
|
|
" # Pooling output size is 28/2 = 14 (downsampling)\n",
|
|
" # Same padding size is (5 - 1)/2 = 2\n",
|
|
" self.cnn2 = nn.Conv2d(in_channels=8, out_channels=32, kernel_size=(5,5), stride=1, padding=2)\n",
|
|
" self.batchnorm2 = nn.BatchNorm2d(32)\n",
|
|
" # Pooling output size is 14/2 = 7 (downsampling)\n",
|
|
" # We have to flatten the output channels 32*7*7 = 1568\n",
|
|
" self.fc1 = nn.Linear(1568,600)\n",
|
|
" self.dropout = nn.Dropout(p=0.5)\n",
|
|
" self.fc2 = nn.Linear(600,10)\n",
|
|
" \n",
|
|
" def forward(self,x):\n",
|
|
" out = self.cnn1(x)\n",
|
|
" out = self.batchnorm1(out)\n",
|
|
" out = self.relu(out)\n",
|
|
" out = self.maxpool(out)\n",
|
|
" out = self.cnn2(out)\n",
|
|
" out = self.batchnorm2(out)\n",
|
|
" out = self.relu(out)\n",
|
|
" out = self.maxpool(out)\n",
|
|
" # we have to flatten the 32 feature maps, output of our last maxpool (100, 1568)\n",
|
|
" out = out.view(-1, 1568) # <- setting the number of rows to -1 is important, because \n",
|
|
" out = self.fc1(out) # when we try to predict we would require to use a size 100 (batch size)\n",
|
|
" out = self.relu(out) # tensor but -1 infers the size.\n",
|
|
" out = self.dropout(out)\n",
|
|
" out = self.fc2(out)\n",
|
|
" \n",
|
|
" return out\n",
|
|
" "
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"model = CNN()\n",
|
|
"\n",
|
|
"CUDA = torch.cuda.is_available()\n",
|
|
"\n",
|
|
"if CUDA:\n",
|
|
" model = model.cuda()\n",
|
|
" \n",
|
|
"loss_fn = nn.CrossEntropyLoss()\n",
|
|
"optimizer = torch.optim.Adam(model.parameters(), lr=0.01)\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 9,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"True\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"print(CUDA)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 10,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"For one iteration this is what happens:\n",
|
|
"Input shape: torch.Size([100, 1, 28, 28])\n",
|
|
"Labels shape: torch.Size([100])\n",
|
|
"Output shape: torch.Size([100, 10])\n",
|
|
"Predicted shape: torch.Size([100, 1, 28, 28])\n",
|
|
"Predicted tensor: \n",
|
|
"tensor([9, 4, 9, 4, 0, 7, 3, 7, 8, 4, 0, 0, 4, 9, 9, 8, 4, 0, 6, 4, 9, 0, 3, 8,\n",
|
|
" 8, 8, 0, 0, 8, 9, 3, 8, 4, 0, 4, 8, 9, 0, 4, 4, 0, 9, 0, 9, 9, 7, 4, 4,\n",
|
|
" 8, 0, 0, 8, 8, 0, 0, 4, 9, 9, 9, 4, 8, 4, 0, 4, 0, 8, 0, 0, 4, 8, 4, 4,\n",
|
|
" 7, 8, 5, 4, 8, 9, 9, 8, 7, 8, 0, 9, 0, 4, 0, 9, 9, 8, 5, 0, 4, 9, 4, 7,\n",
|
|
" 9, 4, 4, 9], device='cuda:0')\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Understand what is happening\n",
|
|
"iteration = 0\n",
|
|
"correct = 0\n",
|
|
"\n",
|
|
"for i,(inputs, labels) in enumerate(train_load):\n",
|
|
" \n",
|
|
" if CUDA:\n",
|
|
" inputs = inputs.cuda()\n",
|
|
" labels = labels.cuda()\n",
|
|
" \n",
|
|
" print('For one iteration this is what happens:')\n",
|
|
" print('Input shape: ', inputs.shape)\n",
|
|
" print('Labels shape: ', labels.shape)\n",
|
|
" output = model(inputs)\n",
|
|
" print('Output shape: ', output.shape)\n",
|
|
" _, predicted = torch.max(output, dim=1)\n",
|
|
" print('Predicted shape: ', inputs.shape)\n",
|
|
" print('Predicted tensor: ')\n",
|
|
" print(predicted)\n",
|
|
" correct += (predicted==labels).sum()\n",
|
|
" break\n",
|
|
" "
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 11,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"Epoch 1/10, Training loss: 0.574, Training accuracy: 0.840, Testing loss: 3.446, Testing accuracy: 0.974\n",
|
|
"Epoch 2/10, Training loss: 0.151, Training accuracy: 0.956, Testing loss: 0.907, Testing accuracy: 0.984\n",
|
|
"Epoch 3/10, Training loss: 0.105, Training accuracy: 0.971, Testing loss: 0.629, Testing accuracy: 0.987\n",
|
|
"Epoch 4/10, Training loss: 0.085, Training accuracy: 0.975, Testing loss: 0.511, Testing accuracy: 0.989\n",
|
|
"Epoch 5/10, Training loss: 0.080, Training accuracy: 0.978, Testing loss: 0.477, Testing accuracy: 0.988\n",
|
|
"Epoch 6/10, Training loss: 0.068, Training accuracy: 0.981, Testing loss: 0.407, Testing accuracy: 0.990\n",
|
|
"Epoch 7/10, Training loss: 0.064, Training accuracy: 0.982, Testing loss: 0.385, Testing accuracy: 0.990\n",
|
|
"Epoch 8/10, Training loss: 0.062, Training accuracy: 0.982, Testing loss: 0.369, Testing accuracy: 0.989\n",
|
|
"Epoch 9/10, Training loss: 0.058, Training accuracy: 0.983, Testing loss: 0.346, Testing accuracy: 0.986\n",
|
|
"Epoch 10/10, Training loss: 0.055, Training accuracy: 0.984, Testing loss: 0.331, Testing accuracy: 0.988\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Training of the CNN\n",
|
|
"num_epochs = 10\n",
|
|
"train_loss = list()\n",
|
|
"train_accuracy = list()\n",
|
|
"test_loss = list()\n",
|
|
"test_accuracy = list()\n",
|
|
"\n",
|
|
"\n",
|
|
"for epoch in range(num_epochs):\n",
|
|
" correct = 0\n",
|
|
" iterations = 0\n",
|
|
" iter_loss = 0.0\n",
|
|
" \n",
|
|
" # When batch normalization and dropout are used\n",
|
|
" # we have to specify our model that we are training\n",
|
|
" model.train()\n",
|
|
" \n",
|
|
" for i,(inputs, labels) in enumerate(train_load):\n",
|
|
" \n",
|
|
" if CUDA:\n",
|
|
" inputs = inputs.cuda()\n",
|
|
" labels = labels.cuda()\n",
|
|
" \n",
|
|
" outputs = model(inputs)\n",
|
|
" loss = loss_fn(outputs,labels)\n",
|
|
" iter_loss += loss.item()\n",
|
|
" \n",
|
|
" optimizer.zero_grad()\n",
|
|
" loss.backward()\n",
|
|
" optimizer.step()\n",
|
|
" \n",
|
|
" _, predicted = torch.max(outputs, dim=1)\n",
|
|
" correct += (predicted==labels).sum().item()\n",
|
|
" iterations += 1\n",
|
|
" \n",
|
|
" train_loss.append(iter_loss/iterations)\n",
|
|
" train_accuracy.append(correct/len(train_dataset))\n",
|
|
" \n",
|
|
" # Testing phase\n",
|
|
" testing_loss = 0.0\n",
|
|
" correct = 0\n",
|
|
" iterations = 0\n",
|
|
" \n",
|
|
" model.eval()\n",
|
|
" \n",
|
|
" for i,(inputs, labels) in enumerate(test_load):\n",
|
|
" \n",
|
|
" if CUDA:\n",
|
|
" inputs = inputs.cuda()\n",
|
|
" labels = labels.cuda()\n",
|
|
" \n",
|
|
" outputs = model(inputs)\n",
|
|
" loss = loss_fn(outputs,labels)\n",
|
|
" testing_loss += loss.item()\n",
|
|
" \n",
|
|
" _, predicted = torch.max(outputs, dim=1)\n",
|
|
" correct += (predicted==labels).sum().item()\n",
|
|
" iterations += 1\n",
|
|
" \n",
|
|
" test_loss.append(iter_loss/iterations)\n",
|
|
" test_accuracy.append(correct/len(test_dataset))\n",
|
|
" \n",
|
|
" print('Epoch {}/{}, Training loss: {:.3f}, Training accuracy: {:.3f}, Testing loss: {:.3f}, Testing accuracy: {:.3f}'.format(\n",
|
|
" epoch+1,num_epochs,train_loss[-1],train_accuracy[-1],test_loss[-1],test_accuracy[-1]))\n",
|
|
"\n",
|
|
"\n",
|
|
" "
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 12,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAlMAAAI/CAYAAABTd1zJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nOzdeZScZZ33//dV1WvSna0qQEgICX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0hhUbph6+RH46iJ49s6kK5EkqSy0trb2Phh4jz32YPbs2b3b7e3tQ37+tttu46677urdvvLKK4vSYRxg8eLFLFmypCjXKrbKfdBx43RofRJWPQ7zXpV0NZIklbxMJsPSpUuBfCPMpqYmPvaxjw3787fddhtNTU0cd9xxAFx88cXjUmepqdyRqeZZUNcEq59KuhJJksrWfffdx9/+7d9yxBFHcPLJJ7NyZb4T0le+8hUWLFjAoYceyllnncWzzz7LlVdeyZe+9CUWLlzIHXfcwRVXXMEXv/hFID+y9IlPfIKjjjqK/fbbjzvuuAOALVu28Pa3v50FCxbw5je/maOPPnrIEajrrruOQw45hIMPPphPfOITAHR1dXH++edz8MEHc8ghh/ClL31p0DrHQ+WOTIUAmX3zo1OSJGnEYox88IMf5Mc//jEzZ87khhtu4NOf/jTXXHMNn//853nmmWeor69n3bp1TJs2jYsvvni70azf/va3212vs7OTe+65h1tvvZXPfvaz/OY3v+Eb3/gG06dP59FHH+Xhhx9m4cKFu6zpxRdf5BOf+AT33Xcf06dP53Wvex0333wze+21FytWrODhh/MPaFm3bh3ADnWOh8oNUwCZHCy/N+kqJEkauZ9fBi89VNxr7nEInPr5YZ/e1tbGww8/zGtf+1ogP/oza9YsAA499FDOOecczjjjDM4444xhXe8tb3kLAEcccQTPPvssAHfeeWfv8/F6nqO3K/feey+LFy+m50kq55xzDrfffjuXX345y5Yt44Mf/CCnnXYar3vd60Zd50hV7m0+gGwO1j0PHduSrkSSpLITY+Sggw5i6dKlLF26lIceeohf/epXAPzsZz/jAx/4APfffz9HHnnksB56XF9fD0A6nS76Q5KnT5/OAw88wOLFi7nyyit573vfO+o6R6rCR6ZagAhrlsHuC5KuRpKk4RvBCNJ4qa+vZ9WqVfzpT3/i2GOPpaOjg7/+9a8ceOCBvPDCC5x44om86lWv4vrrr2fTpk00NzezYcOGEX3H8ccfz49+9CNOPPFEHn30UR56aNejcUcddRSXXnopq1evZvr06Vx33XV88IMfZPXq1dTV1fHWt76V/fffn3e+8510d3cPWue0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rdfbMzs9GEpD5wFlgsnSWak3QAOAXcAbD9w/aXsqliBD1gn6QeMAV8KJynk7papg4Dmzuuh+RFPLEkzQCzwGrZJNHQLeAq8Lt0kBjJANgG7tVLtYuSpkuHit2zvQXcADaAj8BX20/Kpuqmrpap6AhJ+4EHwBXb30rnid2RdA74bPt56Swxsh5w1GUBRAAAATNJREFUHLhtexb4DmT/6QSRdJBqVWYAHAKmJV0om6qbulqmtoAjO6779VhMEEl7qIrUku2V0nmikTngvKT3VMvspyXdLxspGhoCQ9t/vwgvU5WrmBxngHe2t23/BFaAk4UzdVJXy9Qz4KikgaS9VBvuHhbOFA1IEtVejXXbN0vniWZsX7Pdtz1Ddf89tZ0Z8QSx/QnYlHSsHpoH3hSMFM1tACckTdXP1HlyiGAseqUDjIPtX5IuAY+pTi/ctf26cKxoZg5YAF5JWqvHrtt+VDBTxP/mMrBUT0rfAhcL54kGbK9KWgZeUJ2Qfkn+hj4W+QN6RERERAtdXeaLiIiI+CdSpiIiIiJaSJmKiIiIaCFlKiIiIqKFlKmIiIiIFlKmIiIiIlpImYqIiIhoIWUqIiIiooU/aOcROe+599sAAAAASUVORK5CYII=\n",
|
|
"text/plain": [
|
|
"<Figure size 720x720 with 1 Axes>"
|
|
]
|
|
},
|
|
"metadata": {
|
|
"needs_background": "light"
|
|
},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"# Plotting the loss\n",
|
|
"\n",
|
|
"f = plt.figure(figsize=(10,10))\n",
|
|
"plt.plot(train_loss, label='Training loss')\n",
|
|
"plt.plot(test_loss, label='Testing loss')\n",
|
|
"plt.legend()\n",
|
|
"plt.show()\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 13,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAlkAAAI/CAYAAABEVcwAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACx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mEmkO5oNrGv/h/UQMC3IecRHzrmPzawM+BTPHdt70JPfA0JPfBcREREJgO52uVBERETkqlCRJSIiIhIAKrJEREREAkBFloiIiEgAqMgSERERCQAVWSIiIiIBoCJLREREJABUZImIiIgEwP8B3S4XBvagqQIAAAAASUVORK5CYII=\n",
|
|
"text/plain": [
|
|
"<Figure size 720x720 with 1 Axes>"
|
|
]
|
|
},
|
|
"metadata": {
|
|
"needs_background": "light"
|
|
},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"# Plotting the accuracy\n",
|
|
"\n",
|
|
"f = plt.figure(figsize=(10,10))\n",
|
|
"plt.plot(train_accuracy, label='Training accuracy')\n",
|
|
"plt.plot(test_accuracy, label='Testing accuracy')\n",
|
|
"plt.legend()\n",
|
|
"plt.show()\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 14,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"Prediction is: 1\n",
|
|
"Actual label is: 1\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"img = test_dataset[31][0].resize_((1,1,28,28))\n",
|
|
"label = test_dataset[31][1]\n",
|
|
"\n",
|
|
"model.eval()\n",
|
|
"\n",
|
|
"if CUDA:\n",
|
|
" model = model.cuda()\n",
|
|
" img = img.cuda()\n",
|
|
" \n",
|
|
"output = model(img)\n",
|
|
"_, predicted = torch.max(output, dim=1)\n",
|
|
"print('Prediction is: {}'.format(predicted.item()))\n",
|
|
"print('Actual label is: {}'.format(label))\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 15,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/plain": [
|
|
"<matplotlib.image.AxesImage at 0x7ff75ca94310>"
|
|
]
|
|
},
|
|
"execution_count": 15,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
},
|
|
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
|
|
"<Figure size 432x288 with 1 Axes>"
|
|
]
|
|
},
|
|
"metadata": {
|
|
"needs_background": "light"
|
|
},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"random_img = test_dataset[31][0].numpy() * stddev_gray + mean_gray\n",
|
|
"plt.imshow(random_img.reshape(28,28), cmap='gray')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 21,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"def predict(img_name,model,show_image=False):\n",
|
|
" image = cv2.imread(img_name,0)\n",
|
|
" ret, thresholded = cv2.threshold(image,127,255,cv2.THRESH_BINARY)\n",
|
|
" img = 255 - thresholded\n",
|
|
" if show_image == True:\n",
|
|
" cv2.imshow('Original',img)\n",
|
|
" cv2.waitKey(0)\n",
|
|
" cv2.destroyAllWindows()\n",
|
|
" \n",
|
|
" img = Image.fromarray(img)\n",
|
|
" img = transforms_photo(img)\n",
|
|
" img = img.view(1,1,28,28)\n",
|
|
" #img = Variable(img)\n",
|
|
" \n",
|
|
" model.eval()\n",
|
|
" \n",
|
|
" if CUDA:\n",
|
|
" model = model.cuda()\n",
|
|
" img = img.cuda()\n",
|
|
" \n",
|
|
" output = model(img)\n",
|
|
" print(output)\n",
|
|
" print(output.data)\n",
|
|
" _, predicted = torch.max(output,1)\n",
|
|
" return predicted.item()\n",
|
|
" "
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 22,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"tensor([[-5.4035, 2.6434, 8.6153, -3.0462, -7.2718, -7.2775, -1.7709, 0.8279,\n",
|
|
" -4.8467, -8.3950]], device='cuda:0', grad_fn=<AddmmBackward>)\n",
|
|
"tensor([[-5.4035, 2.6434, 8.6153, -3.0462, -7.2718, -7.2775, -1.7709, 0.8279,\n",
|
|
" -4.8467, -8.3950]], device='cuda:0')\n",
|
|
"the predicted label is 2\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"pred = predict('photo.jpg',model)\n",
|
|
"print('the predicted label is {}'.format(pred))"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.7.7"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 4
|
|
}
|