BorderDet icon indicating copy to clipboard operation
BorderDet copied to clipboard

where is the implementation details of border_align_forward

Open muyihao opened this issue 4 years ago • 2 comments

I want read the implementation of border_align_forward, but can't open the _C in "from cvpods import _C" in the file of border_align.py

muyihao avatar May 13 '21 02:05 muyihao

Thank you for your attention. https://github.com/Megvii-BaseDetection/cvpods/blob/master/cvpods/layers/border_align.py https://github.com/Megvii-BaseDetection/cvpods/tree/master/cvpods/layers/csrc/border_align

Maycbj avatar May 21 '21 09:05 Maycbj

@Maycbj Thank you for you reply. I have some problem after reading the code. The block parameter set 128. why the grid parameter set output_size /64 instead of output_size /128

dim3 grid(std::min(THCCeilDiv((long)output_size, 64L), 4096L)); dim3 block(128, 4);

https://github.com/Megvii-BaseDetection/cvpods/blob/d1b1de5260eebc37f0f68c351a5e1963e91051a5/cvpods/layers/csrc/border_align/border_align_kernel.cu#L179

fengqian-wei avatar Jun 01 '21 07:06 fengqian-wei