ValueError: Negative dimension size caused by subtracting 2 from 1 for ‘{{node max_pooling2d_1/MaxPool}} = MaxPoolT=DT_FLOAT, data_format=“NHWC”, explicit_paddings=[], ksize=[1, 2, 2, 1], padding=“VALID”, strides=[1, 2, 2, 1]’ with input shapes: [?,1,128,64].
channel Order problem
Add the code
from keras import backend as K
K.set_image_data_format(‘channel_first’)
Done!
Read More:
- [Solved] MindSpore Error: ValueError: For ‘AvgPool’ every dimension of the output shape must be greater than zero
- [Solved] sqoop Error: jSQLException in nextKeyValue Caused by: ORA-24920:column size too large for client
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…
- Caused by: java.net.SocketException: Software caused connection abort: socket write error
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- How to Solve Show() error caused by empty data
- Kettle Error Caused by: java.lang.ArrayIndexOutOfBoundsException
- [Solved] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- The problem of error reporting caused by fluent swift
- [Solved] hive Caused by: MetaException(message:Version information not found in metastore. )
- [Solved] Android mediaplayer.prepare() Error: Caused by: java.lang.IllegalStateException
- error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘cv::imshow‘
- [Solved] Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.typeinfo.TypeInformation
- [Solved] Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
- [Solved] size_from_dim: Assertion `dim >= 0 && (size_t)dim < sizes_.size()` failed.
- [Solved] Excel solver: Error Log 3_Decimal result after non negative constraint
- [Solved] MindSpore Error: ValueError: `padding_idx` in `Embedding` out of range
- ValueError: Input 0 of node import/save/Assign was passed float from import/beta1_power:0 incompatib
- [Solved] Tensorflow/Keras Error reading weights: ValueError: axes don‘t match array
- ValueError: Floating point image RGB values must be in the 0..1 range.