title: In Keras how to get the `class_indices` or prediction labels for an existing model
body: <p>I know that keras provides a <code>.class_indicies</code> dictionary containing the mapping from class names to class as part of <code>.flow_from_directory()</code> from its <code>ImageDataGenerator</code> class  (<a href="https://keras.io/preprocessing/image/" rel="nofollow noreferrer">https://keras.io/preprocessing/image/</a>).  </p>
  
  <p>However, is there a way to access the corresponding class labels from an existing <em>saved</em> model (a model saved in as an .h5 file)?  This seems important when putting my model into production and serving predictions since the classes are not known upfront and therefore the images are not separated in pre-labeled directories.</p>