Open secortot opened 3 years ago
add code below in CenterNet2/centernet/modeling/roi_heads/custom_fast_rcnn.py could slove: def _predict_boxes(self): """ Returns: Tensor: A Tensors of predicted class-specific or class-agnostic boxes for all images in a batch. Element i has shape (Ri, K * B) or (Ri, B), where Ri is the number of predicted objects for image i and B is the box dimension (4 or 5) """ return self.box2box_transform.apply_deltas(self.pred_proposal_deltas, self.proposals.tensor)
Instructions To Reproduce the 🐛 Bug: