Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/ImageNet Pretrained Network (VGG_S).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@
"source": [
"import pickle\n",
"\n",
"model = pickle.load(open('vgg_cnn_s.pkl'))\n",
"try:\n",
" values = pickle.load(open('vgg19_normalized.pkl','rb'))['param values']\n",
"except UnicodeDecodeError:\n",
" values = pickle.load(open('vgg19_normalized.pkl','rb'),encoding='Latin-1')['param values'] # python3\n",
"CLASSES = model['synset words']\n",
"MEAN_IMAGE = model['mean image']\n",
"\n",
Expand Down