def __init__(self, feat_stride, scales, ratios):
    super(_ProposalLayer, self).__init__()
    self._feat_stride = feat_stride
    self._anchors = torch.from_numpy(generate_anchors(scales=np.array(scales), ratios=np.array(ratios))).float()
    self._num_anchors = self._anchors.size(0)
def __init__(self, feat_stride, scales, ratios):
    super(_ProposalLayer, self).__init__()
    self._feat_stride = feat_stride
    self._anchors = torch.from_numpy(generate_anchors(scales=np.array(scales), ratios=np.array(ratios))).float()
    self._num_anchors = self._anchors.size(0)