(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.

my-mbp:sd201708_sp1_ch02_sample_rev1 UtaX86$ 

 

pip install h5py

 

 

 

cordova-splashはcordovaのスプラッシュを一括で作成するnpmパッケージ

cordovaのスプラッシュを一括で作成するnpmパッケージ

https://www.npmjs.com/package/ 

sudo npm install cordova-splash -g
cordova-splash --config=config.xml --splash=images/002.splash-screen.png

 Checking Project & Splash

  ✓  platforms found: android
  ✓  images/002.splash-screen.png exists
  ✓  config.xml exists

 Generating splash screen for android

resize arg
arg 320x200
resize arg
arg 480x320
resize arg
arg 800x480
resize arg
arg 1280x720
resize arg
arg 1920x1280
resize arg
arg 1600x960
resize arg
arg 320x480
resize arg
arg 200x320
resize arg
arg 480x800
resize arg
arg 720x1280
resize arg
arg 960x1600
resize arg
arg 1280x1920
  ✓  drawable-land-ldpi/screen.png created
  ✓  drawable-land-mdpi/screen.png created
  ✓  drawable-port-ldpi/screen.png created
  ✓  drawable-port-mdpi/screen.png created
  ✓  drawable-port-hdpi/screen.png created
  ✓  drawable-land-hdpi/screen.png created
  ✓  drawable-port-xhdpi/screen.png created
  ✓  drawable-land-xhdpi/screen.png created
  ✓  drawable-port-xxhdpi/screen.png created
  ✓  drawable-port-xxxhdpi/screen.png created
  ✓  drawable-land-xxhdpi/screen.png created
  ✓  drawable-land-xxxhdpi/screen.png created

‘cordova-plugin-livereload’ has been deprecated!!!

cordovaのplatform addはdeprecatedで停止しても、runできてしまった。

deprecatedだけ除外したのかとおもったら

cordovaのアプリがネットワークに繋がらなかったり、プラグインが動かなくなったので

AndroidManifest.xmlをみるとuses-permissionもactivityも全然足りていない。。

deprecatedの対象cordova-plugin-livereloadを除外して、platform rm addを再度行ってみたら治った。

 

Installing “cordova-plugin-headercolor” for android

Installing “cordova-plugin-inappbrowser” for android

Installing “cordova-plugin-livereload” for android
##################################################################

‘cordova-plugin-livereload’ has been deprecated!!!

Please use ‘taco run –livereload’ instead.

For more information please visit http://taco.tools/docs/run.html.

##################################################################
Failed to install ‘cordova-plugin-livereload’: Error: Deprecated Plugin ‘cordova-plugin-livereload’

Error: Deprecated Plugin ‘cordova-plugin-livereload’

CordovaアプリのGooglePlay向けリリース準備

cordova-splash –config=config.xml –splash=splash-screen.png

cordova-icon –icon=ic_launcher-web.png

cordova build android —release

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore {KeyStoeFilePath} platforms/android/build/outputs/apk/{ApkFileName}  {KeyStoreAliasName} 

zipalign -f -v 4 platforms/android/build/outputs/apk/{ApkFileName} platforms/android/build/outputs/apk/{outputApkFileName}