-
Notifications
You must be signed in to change notification settings - Fork 30
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
How to convert the mxnet code to your code #6
Comments
I think the problem is shape order. It needs order as NxCxHxW, instead of NxHxWxC in tensorflow. After obtained the result of deformable convolution using NxCxHxW, I need to reorder again to NxHxWxC as tensorflow format. Am I right? |
It seems |
Thanks for your help. I checked the code that confirmed only support NCHW format. Sorry, I did not read it before.
|
@John1231983 I am not familiar with the mxnet context, what does the |
I guess this is learning rate multiplier for bias and weight. |
@John1231983 I don't think I did. If you are referring to the code of |
Thanks to your great direction. I have completed it and it worked well. However, I have one question for offset. In traditional implementation, the offset did not include rate/dilated parameter although the deformable convolution has it. For example, the you can see it in the deeplab
However, in your implementation for Faster RCNN I found
It shows that the offset needs to include rate to make it consistent with its deformable convolution. Do we need to consider rate in the offset? |
@John1231983 I am not sure whether the rate in the offset stream is necessary. I remember I set all arguments according to the original implementation, so I did not have a particular reason for the rate stuff. You might very well to set it to |
I think it is necessary. I guess the author is missing because each element of convolution will correspond to offset element. On other hands, the offset element controls the direction of convolution in deformation. When we use the dilation way, the convolution element already sparse and the offset element also needs to sparse to corporate together location by location |
This is not an issue because the code worked fine in TF 1.2 and cudnn 5.1
In this question, I want to ask about how can I convert the mxnet code using your implementation. As shown in the line 678, we have
How can I convert 4 above lines using
deform_conv_op.deform_conv_op
? I read thedemo.py
,test_deform_conv.py
, and this is my current covertingNote that, above converting used NHWC order and still missing two first lines
And also got the error
The text was updated successfully, but these errors were encountered: