зеркало из https://github.com/microsoft/caffe.git
use plt namespace for imshow in filter_visualization.ipynb
This commit is contained in:
Родитель
906112de6b
Коммит
da2138c75d
|
@ -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": {},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче