def __init__(self, base_size, scales, ratios, scale_major=True, ctr=None):
    super(S2ANetAnchorGenerator, self).__init__()
    self.base_size = base_size
    self.scales = paddle.to_tensor(scales)
    self.ratios = paddle.to_tensor(ratios)
    self.scale_major = scale_major
    self.ctr = ctr
    self.base_anchors = self.gen_base_anchors()
def __init__(self, base_size, scales, ratios, scale_major=True, ctr=None):
    super(S2ANetAnchorGenerator, self).__init__()
    self.base_size = base_size
    self.scales = paddle.to_tensor(scales)
    self.ratios = paddle.to_tensor(ratios)
    self.scale_major = scale_major
    self.ctr = ctr
    self.base_anchors = self.gen_base_anchors()