use plt namespace for imshow in filter_visualization.ipynb
authorClemens Korner <clemens.corny@gmail.com>
Wed, 13 Aug 2014 10:05:30 +0000 (12:05 +0200)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 13 Aug 2014 17:34:23 +0000 (10:34 -0700)
examples/filter_visualization.ipynb

index 5165d84..765aab5 100644 (file)
       "    data = data.reshape((n, n) + data.shape[1:]).transpose((0, 2, 1, 3) + tuple(range(4, data.ndim + 1)))\n",
       "    data = data.reshape((n * data.shape[1], n * data.shape[3]) + data.shape[4:])\n",
       "    \n",
-      "    imshow(data)"
+      "    plt.imshow(data)"
      ],
      "language": "python",
      "metadata": {},
      "collapsed": false,
      "input": [
       "# index four is the center crop\n",
-      "imshow(net.deprocess('data', net.blobs['data'].data[4]))"
+      "plt.imshow(net.deprocess('data', net.blobs['data'].data[4]))"
      ],
      "language": "python",
      "metadata": {},