use plt namespace for imshow in filter_visualization.ipynb

This commit is contained in:
Clemens Korner 2014-08-13 12:05:30 +02:00 коммит произвёл Evan Shelhamer
Родитель 906112de6b
Коммит da2138c75d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -193,7 +193,7 @@
" data = data.reshape((n, n) + data.shape[1:]).transpose((0, 2, 1, 3) + tuple(range(4, data.ndim + 1)))\n", " 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", " data = data.reshape((n * data.shape[1], n * data.shape[3]) + data.shape[4:])\n",
" \n", " \n",
" imshow(data)" " plt.imshow(data)"
], ],
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
@ -212,7 +212,7 @@
"collapsed": false, "collapsed": false,
"input": [ "input": [
"# index four is the center crop\n", "# 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", "language": "python",
"metadata": {}, "metadata": {},