lukas / ml-class

Machine learning lessons and teaching projects designed for engineers
https://www.youtube.com/channel/UCBp3w4DCEC64FZr4k9ROxig
GNU General Public License v2.0
2.37k stars 1.17k forks source link

Issue with keras-deep-dream.py #12

Closed DonovanJames closed 7 years ago

DonovanJames commented 7 years ago

Getting an error when trying to compile deep dream. Maybe an issue with py 2.7?

Gibson:ml-class usbots$ python keras-deep-dream.py Using TensorFlow backend. Traceback (most recent call last): File "keras-deep-dream.py", line 54, in model = inception_v3.InceptionV3(weights='imagenet', include_top=False) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/applications/inception_v3.py", line 386, in InceptionV3 model.load_weights(weights_path) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/engine/topology.py", line 2531, in load_weights raise ImportError('load_weights requires h5py.') ImportError: load_weights requires h5py. Gibson:ml-class usbots$ python keras-deep-dream.py Using TensorFlow backend. Traceback (most recent call last): File "keras-deep-dream.py", line 55, in include_top=False) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/applications/inception_v3.py", line 386, in InceptionV3 model.load_weights(weights_path) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/engine/topology.py", line 2531, in load_weights raise ImportError('load_weights requires h5py.') ImportError: load_weights requires h5py.

DonovanJames commented 7 years ago

Found the issues. vgg16_weights.h5 failed to download.