Closed
Description
I am loading a model from an hdf5 file with using keras.models.load_model. when i try to predict using that model the following error raises:
'thread._local' object has no attribute 'value'
the code is:
'''
from keras.preprocessing.image import img_to_array
from keras.models import load_model
model_path = (''/home/pi/classifier/models/model.hdf5'')
classifier = load_model(model_path, compile=False)
preds = classifier.predict(img_to_array(image))
'''
where image is numpy array read by opencv
Platform: Raspberry Pi 4
OS: Raspbian Buster
TF version: 1.13.1
Keras version: 2.3.0
Metadata
Metadata
Assignees
Labels
No labels