May 2018
Beginner
490 pages
13h 16m
English
Loading the model with CNN_CONCEPT_STRATEGY.py to use it requires more headers. I played it safe and loaded whatever would be needed to save the time otherwise spent in crashing and looking for imports as shown here:
from keras.preprocessing.image import load_imgfrom keras.preprocessing.image import img_to_arrayimport matplotlib.pyplot as pltimport kerasimport numpy as npfrom keras.preprocessing.image import ImageDataGeneratorfrom keras.models import model_from_jsonfrom keras.models import load_modelimport numpy as npimport cv2 from PIL import Image
Loading the .json file and weights is done by using the same code as in the READ_CNN_MODEL.py described previously. Once you load it, compile the model with the model.compile ...
Read now
Unlock full access