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
This works perfectly, and gives me a certain accuracy. I am not satisfied with this accuracy, so I want to add more layers. But If I add any single layer further to this model, I get an exception: Exception: The shape of the input to "Flatten" is not fully defined (got (64, 0, 0). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.
I tried changing batch_input_shape = (3, img_rows, img_cols)) to batch_input_shape = (batch_size, 3, img_rows, img_cols)) in the first layer, but no resolution.
I also read somewhere that batch_size has to be factor of number of training_samples, I did that as well, but still the error.
Can you help in this regard, by either helping me eliminate the error or pointing out WHY can't I add more layers? Your help is already appreciated.
The text was updated successfully, but these errors were encountered:
Your height, width are not large enough for this network. It will become zero before Flatten layer. Please make good use of model.summary() to see how your network looks like.
In a task of an Image Classification, following works perfectly:
This works perfectly, and gives me a certain accuracy. I am not satisfied with this accuracy, so I want to add more layers. But If I add any single layer further to this model, I get an exception:
Exception: The shape of the input to "Flatten" is not fully defined (got (64, 0, 0). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.
I tried changing
batch_input_shape = (3, img_rows, img_cols))
tobatch_input_shape = (batch_size, 3, img_rows, img_cols))
in the first layer, but no resolution.I also read somewhere that batch_size has to be factor of number of training_samples, I did that as well, but still the error.
Can you help in this regard, by either helping me eliminate the error or pointing out WHY can't I add more layers? Your help is already appreciated.
The text was updated successfully, but these errors were encountered: