easy_detection icon indicating copy to clipboard operation
easy_detection copied to clipboard

关于frcnn-fpn的anchor生成问题

Open haodehao opened this issue 4 years ago • 2 comments

detection_template/network/Faster_RCNN/frcnn/rpn.py line88 code: shifts_x = (torch.arange( 0, grid_width, dtype=torch.float32, device=device )+.5) * stride_width shifts_y = (torch.arange( 0, grid_height, dtype=torch.float32, device=device )+.5)* stride_height

加上加粗的部分,这样是不是才对?anchor应该是基于网格中心点才是啊

haodehao avatar Mar 02 '21 02:03 haodehao

你好,这个是用的torchvision的代码 https://github.com/pytorch/vision/blob/master/torchvision/models/detection/anchor_utils.py#L116

misads avatar Mar 02 '21 03:03 misads

你好,我debug下来感觉不太对劲,模型是以网格左上角为anchor中心点计算的

haodehao avatar Mar 02 '21 04:03 haodehao