chengdazhi / Deformable-Convolution-V2-PyTorch

Deformable ConvNets V2 (DCNv2) in PyTorch
MIT License
1.43k stars 229 forks source link

The exact mapping between the channel index of the mask and the coordinate of the modulated kernel #81

Open YingqianWang opened 2 years ago

YingqianWang commented 2 years ago

Thanks a lot for your released codes of DCNv2. I have the following question. For a NxN modulated deformable convolution, its mask has N^2 channels. I want to know the exact mapping between the channel index of the mask and the coordinate of the modulated kernel. Is the mapping like this: [0, 1, 2, 3, 4, ..., N^2] --> [[0, 0], [0, 1], [0, 2], ..., [N, N]]?

Hoping that you can help me with this problem. Looking forward to your early reply. Thanks a lot!