You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when this code runs,it happens a ValueError. here is the traceback:
train = model.predict_generator(train_generator, train_step)
File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 88, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 2094, in predict_generator
outs = self.predict_on_batch(x)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1677, in predict_on_batch
self._feed_input_shapes)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 100, in _standardize_input_data
'Found: array with shape ' + str(data.shape))
ValueError: The model expects 0 input arrays, but only received one array. Found: array with shape (16, 299, 299, 3)
what's wrong with my code? it is OK when i use the older version of InceptionV3, and now it is still OK when i use ResNet50 and Xception model. could you help me? , thanks :(
The text was updated successfully, but these errors were encountered:
Hi,i am in trouble when i use the pre-train model ''InceptionV3" in keras.
here's my code:
but when this code runs,it happens a ValueError. here is the traceback:
what's wrong with my code? it is OK when i use the older version of InceptionV3, and now it is still OK when i use ResNet50 and Xception model. could you help me? , thanks :(
The text was updated successfully, but these errors were encountered: