def __init__(self, feat_stride=16, anchor_scales=[4, 8, 16, 32]): self._feat_stride = feat_stride self._anchors = generate_anchors(scales=np.array(anchor_scales)) self._num_anchors = self._anchors.shape[0]
def __init__(self, feat_stride=16, scales=2**np.arange(3, 6)): self.feat_stride = feat_stride self.anchors = generate_anchors(scales=scales) self.n_anchors = self.anchors.shape[0] self.allowed_border = 0
def __init__(self, feat_stride=16, scales=2 ** np.arange(3, 6)): self.feat_stride = feat_stride self.anchors = generate_anchors(scales=scales) self.n_anchors = self.anchors.shape[0] self.allowed_border = 0