Skip to content

Commit

Permalink
Chap13 - CNN 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
ExcelsiorCJH committed Oct 19, 2018
1 parent 856c34d commit a52e0b9
Showing 1 changed file with 17 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,31 +561,14 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"fmap.shape : (7, 7, 1, 2)\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAP0AAAEDCAYAAAD+2gIhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvhp/UCwAAAyRJREFUeJzt28ENAyEMAME4Sv8t+2q4R+CxMwWAhbTi5dndD9DxvT0AcJboIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qI+f3z8JmxzXPY7QWqmbl6f9Huvnp0Pz3EiB5iRA8xoocY0UOM6CFG9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5iRA8xoocY0UOM6CFG9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5iRA8xoocY0UOM6CFG9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5iRA8xoocY0UOM6CFG9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5iRA8xoocY0UOM6CFG9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5iR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AgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABqytr6/v9BgAAOArnhVvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABghvAAAYILwBAGCA8AYAgAHCGwAABvw/lXhprZdnqeQAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAP0AAAEDCAYAAAD+2gIhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZX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9BAjeogRPcSIHmJEDzGihxjRQ4zoIUb0ECN6iBE9xIgeYkQPMaKHGNFDjOghRvQQI3qIET3EiB5ivqfkEgI4vmAXAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
"<Figure size 1008x360 with 2 Axes>"
]
},
"metadata": {},
Expand All @@ -596,11 +579,20 @@
"fmap = np.zeros(shape=(7, 7, 1, 2), dtype=np.float32)\n",
"fmap[:, 3, 0, 0] = 1\n",
"fmap[3, :, 0, 1] = 1\n",
"print('fmap.shape :', fmap.shape)\n",
"plot_image(fmap[:, :, 0, 0])\n",
"plt.show()\n",
"plot_image(fmap[:, :, 0, 1])\n",
"plt.show()"
"\n",
"# matplotlib으로 plotting하기\n",
"fig, axs = plt.subplots(1, 2, figsize=(14, 5))\n",
"pl_images = [\n",
" fmap[:, :, 0, 0], # vertical-filter\n",
" fmap[:, :, 0, 1], # horizontal-filter\n",
"]\n",
"\n",
"titles = ['vertical-filter', 'horizontal-filter']\n",
"\n",
"for i, (image, title) in enumerate(zip(pl_images, titles)):\n",
" axs[i].imshow(image, cmap='gray')\n",
" axs[i].set_title(title)\n",
" axs[i].axis('off')"
]
},
{
Expand Down

0 comments on commit a52e0b9

Please sign in to comment.