本文整理匯總了Python中model.utils.config.cfg.FPN_FEAT_STRIDES屬性的典型用法代碼示例。如果您正苦於以下問題:Python cfg.FPN_FEAT_STRIDES屬性的具體用法?Python cfg.FPN_FEAT_STRIDES怎麽用?Python cfg.FPN_FEAT_STRIDES使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類model.utils.config.cfg
的用法示例。
在下文中一共展示了cfg.FPN_FEAT_STRIDES屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from model.utils.config import cfg [as 別名]
# 或者: from model.utils.config.cfg import FPN_FEAT_STRIDES [as 別名]
def __init__(self, feat_stride, scales, ratios):
super(_ProposalLayer_FPN, self).__init__()
self._anchor_ratios = ratios
self._feat_stride = feat_stride
self._fpn_scales = np.array(cfg.FPN_ANCHOR_SCALES)
self._fpn_feature_strides = np.array(cfg.FPN_FEAT_STRIDES)
self._fpn_anchor_stride = cfg.FPN_ANCHOR_STRIDE
# self._anchors = torch.from_numpy(generate_anchors_all_pyramids(self._fpn_scales, ratios, self._fpn_feature_strides, fpn_anchor_stride))
# self._num_anchors = self._anchors.size(0)
示例2: __init__
# 需要導入模塊: from model.utils.config import cfg [as 別名]
# 或者: from model.utils.config.cfg import FPN_FEAT_STRIDES [as 別名]
def __init__(self, feat_stride, scales, ratios):
super(_AnchorTargetLayer_FPN, self).__init__()
self._anchor_ratios = ratios
self._feat_stride = feat_stride
self._fpn_scales = np.array(cfg.FPN_ANCHOR_SCALES)
self._fpn_feature_strides = np.array(cfg.FPN_FEAT_STRIDES)
self._fpn_anchor_stride = cfg.FPN_ANCHOR_STRIDE
# allow boxes to sit over the edge by a small amount
self._allowed_border = 0 # default is 0
示例3: __init__
# 需要導入模塊: from model.utils.config import cfg [as 別名]
# 或者: from model.utils.config.cfg import FPN_FEAT_STRIDES [as 別名]
def __init__(self, feat_stride, ratios):
super(_AnchorTargetLayer, self).__init__()
self._anchor_ratios = ratios
self._feat_stride = feat_stride
self._fpn_scales = np.array(cfg.FPN_ANCHOR_SCALES)
self._fpn_feature_strides = np.array(cfg.FPN_FEAT_STRIDES)
self._fpn_anchor_stride = cfg.FPN_ANCHOR_STRIDE
# allow boxes to sit over the edge by a small amount
self._allowed_border = 0 # default is 0
示例4: __init__
# 需要導入模塊: from model.utils.config import cfg [as 別名]
# 或者: from model.utils.config.cfg import FPN_FEAT_STRIDES [as 別名]
def __init__(self, feat_stride, ratios):
super(_ProposalLayer, self).__init__()
self._anchor_ratios = ratios
self._feat_stride = feat_stride
self._fpn_scales = np.array(cfg.FPN_ANCHOR_SCALES)
self._fpn_feature_strides = np.array(cfg.FPN_FEAT_STRIDES)
self._fpn_anchor_stride = cfg.FPN_ANCHOR_STRIDE
# self._anchors = torch.from_numpy(generate_anchors_all_pyramids(self._fpn_scales, ratios, self._fpn_feature_strides, fpn_anchor_stride))
# self._num_anchors = self._anchors.size(0)