easy_detection
easy_detection copied to clipboard
关于frcnn-fpn的anchor生成问题
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应该是基于网格中心点才是啊
你好,这个是用的torchvision的代码 https://github.com/pytorch/vision/blob/master/torchvision/models/detection/anchor_utils.py#L116
你好,我debug下来感觉不太对劲,模型是以网格左上角为anchor中心点计算的