Closed WaichungLing closed 2 years ago
For anyone facing the same issue: Try the following fix in conv.py:conv2d2
# NCHW -> NHWC
inputs = tf.transpose(inputs, [0, 2, 3, 1])
conv_out = tf.compat.v1.nn.conv2d(
inputs, filters=weights, strides=stride, padding='SAME', data_format='NHWC')
# NHWC -> NCHW
conv_out = tf.transpose(conv_out, [0, 3, 1, 2])
Hi @Mukosame @liuq99 , Thanks for sharing the code and we find your project very interesting. We are trying to train the model with our own dataset. The dataset is in the same format as specified. It has five categories and each train/test image is 64*128*3. However, we got the following error message. Any idea on what leads to this? Thanks in advanced and looking forward to your reply.