If you use Keras 2, please install kerutils 2.xx (from pypi): pip install kerutils
Some of the utilities (especially those in imgutils.py) are specifically designated for the examples
in my
deep learning notebooks,
but can easily be tailored for general usage if desired.