TF-deformable-conv icon indicating copy to clipboard operation
TF-deformable-conv copied to clipboard

deform_conv_2d() meet the error

Open FakerYFX opened this issue 6 years ago • 4 comments

when i build my own model,in this step: image

image image i meet the errror: image look forward to hearing from you. @Zardinality

FakerYFX avatar Sep 05 '18 04:09 FakerYFX

you feed a NHWC format data into the layer of NCHW. its not related to this repo

Zardinality avatar Sep 05 '18 08:09 Zardinality

i use this img = tf.transpose(img, [0, 3, 1, 2]) to change to the NCHW,but i got another errror: image @Zardinality

FakerYFX avatar Sep 06 '18 03:09 FakerYFX

Before using deform_conv_2d(),convert the input format to NCHW:tf.transpose(img, [0, 3, 1, 2]); And convert the function output to NHWC:tf.transpose(img, [0, 2, 3, 1]).

YinZ-510 avatar Nov 13 '18 08:11 YinZ-510

I meet the same issue, and I found the arg data_format of deform_conv_op is useless. Only make sure input a tensor with NCHW can the op data_format work.

Carrotor116 avatar Jun 24 '19 14:06 Carrotor116