{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "%%HTML\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Appendix G: Creating a CNN to Predict Bitmojis" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import torch\n", "from PIL import Image\n", "from torch import nn, optim\n", "from torchvision import datasets, transforms, utils\n", "from torchsummary import summary\n", "import matplotlib.pyplot as plt\n", "plt.style.use('ggplot')\n", "plt.rcParams.update({'font.size': 16, 'axes.labelweight': 'bold', 'axes.grid': False})\n", "import plotly.io as pio\n", "pio.renderers.default = 'notebook'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Introduction\n", "