Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Confusion about the shape of offset #17

@ChiWeiHsiao

Description

@ChiWeiHsiao

Hello,

I am confused about the shape of offset.
The paper mentions:
"The grid R defines the receptive field size and dilation. For example,R = {(−1,−1),(−1,0),...,(0,1),(1,1)}.
In deformable convolution, the regular grid R is aug- mented with offsets {∆pn |n = 1, ..., N }, where N = |R|.
The output offset fields have the same spatial resolution with the input feature map. The channel dimension 2N corresponds to N 2D offsets."
So, I think the shape of offset field would be [29, H, W] if 3x3 kernel is used.
While in your implementation, the shape of offset seems to be [batch_size, 2
n_channels, H, W]?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions