-
Notifications
You must be signed in to change notification settings - Fork 151
about the implementation.. view instead of permute ? #16
Comments
No. Go to the The following is the shape I printed:
|
i think this's a bug, since we're messing up between spatial dimensions (2*c) and channel dimensions (h, w). The correct way should be:
|
But it seems that this implementation is wrong as pointed in other issues. |
Hi, thanks for looking into this. This was a direct port from tensorflow to pytorch before the author of deformable conv release their code, and I am aware that there is some issue with the original tensorflow implementation. However, I haven't worked on this for a while, and it would be great if someone can submit a PR here. |
@oeway to my surprise, there is an official implementation of deformable conv in Pytorch. Check it out at https://pytorch.org/vision/stable/_modules/torchvision/ops/deform_conv.html |
Hello. Thanks for sharing the code.
I have a question about the implementation of
offset
, in [https://github.com/oeway/pytorch-deform-conv/blob/master/torch_deform_conv/deform_conv.py#L182]the code :
the input tensor
offsets
in b * (2c) * h * w after first normal conv, I think the offset of defom-conv is the output channels, therefore is the code should be ? :The text was updated successfully, but these errors were encountered: