Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deform_conv_2d() meet the error #14

Open
FakerYFX opened this issue Sep 5, 2018 · 4 comments
Open

deform_conv_2d() meet the error #14

FakerYFX opened this issue Sep 5, 2018 · 4 comments

Comments

@FakerYFX
Copy link

FakerYFX commented Sep 5, 2018

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

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

@Zardinality
Copy link
Owner

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

@FakerYFX
Copy link
Author

FakerYFX commented Sep 6, 2018

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

@YinZ-510
Copy link

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]).

@Carrotor116
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants