From: Evan Shelhamer Date: Fri, 15 Aug 2014 21:04:59 +0000 (-0700) Subject: [example] include imports in net surgery X-Git-Tag: submit/tizen/20180823.020014~620^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16f23eb95a123885f818f76f7475d4eaccc6ce19;p=platform%2Fupstream%2Fcaffeonacl.git [example] include imports in net surgery --- diff --git a/examples/net_surgery.ipynb b/examples/net_surgery.ipynb index dc9c7e8..2b5a861 100644 --- a/examples/net_surgery.ipynb +++ b/examples/net_surgery.ipynb @@ -3,7 +3,7 @@ "description": "How to do net surgery and manually change model parameters, making a fully-convolutional classifier for dense feature extraction.", "example_name": "Editing model parameters", "include_in_docs": true, - "signature": "sha256:0b2ad61622122fa34a40c250be2c0799a85fb65c149b802ce844c46eceba066e" + "signature": "sha256:de67ad69a180b5a6b350d897042fe0bd424f7db63112ca3b7faba259ccbb9be6" }, "nbformat": 3, "nbformat_minor": 0, @@ -273,6 +273,10 @@ "cell_type": "code", "collapsed": false, "input": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", "# load input and configure preprocessing\n", "im = caffe.io.load_image('images/cat.jpg')\n", "plt.imshow(im)\n",