(TensorFlow + keras ) Epoch 50/50 終わったと思ったら。。ImportError: `save_model` requires h5py.

  • このエントリーをはてなブックマークに追加

2000/2000 [==============================] - 396s - loss: 1.1921e-07 - acc: 1.0000 - val_loss: 1.1921e-07 - val_acc: 1.0000
Traceback (most recent call last):File "image_classify.py", line 24, in <module>
model.save("image_classifier.h5")
    File "/usr/local/lib/python2.7/site-packages/keras/engine/topology.py", line 2553, in save
    save_model(self, filepath, overwrite, include_optimizer)
  File "/usr/local/lib/python2.7/site-packages/keras/models.py", line 56, in save_model
    raise ImportError('`save_model` requires h5py.')
ImportError: `save_model` requires h5py.
mbp:sd201708_sp1_ch02_sample_rev1 dp$


pip install h5py

  • このエントリーをはてなブックマークに追加

SNSでもご購読できます。