Skip to content

Commit

Permalink
Merge pull request fastai#11 from 0bserver07/fix_util_import
Browse files Browse the repository at this point in the history
util was being imported from a dir not file in Lesson 2
  • Loading branch information
racheltho authored Jan 3, 2017
2 parents d6cef65 + 7fff664 commit f7f06f5
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions deeplearning1/nbs/dogs_cats_redux.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
{
"cell_type": "code",
"execution_count": 120,
"execution_count": 2,
"metadata": {
"collapsed": false
},
Expand All @@ -81,26 +81,18 @@
},
{
"cell_type": "code",
"execution_count": 121,
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Using Theano backend.\n"
]
}
],
"outputs": [],
"source": [
"#Allow relative imports to directories above lesson1/\n",
"sys.path.insert(1, os.path.join(sys.path[0], '..'))\n",
"\n",
"#import modules\n",
"from utils.utils import *\n",
"from utils.vgg16 import Vgg16\n",
"from utils import *\n",
"from vgg16 import Vgg16\n",
"\n",
"#Instantiate plotting tool\n",
"#In Jupyter notebooks, you will need to run this command before doing any plotting\n",
Expand Down Expand Up @@ -1189,7 +1181,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
Expand Down

0 comments on commit f7f06f5

Please sign in to comment.