當前位置: 首頁>>代碼示例>>Python>>正文


Python cfg.FPN_FEAT_STRIDES屬性代碼示例

本文整理匯總了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) 
開發者ID:guoruoqian,項目名稱:cascade-rcnn_Pytorch,代碼行數:11,代碼來源:proposal_layer_fpn.py

示例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 
開發者ID:guoruoqian,項目名稱:cascade-rcnn_Pytorch,代碼行數:12,代碼來源:anchor_target_layer_fpn.py

示例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 
開發者ID:HKUST-Aerial-Robotics,項目名稱:Stereo-RCNN,代碼行數:12,代碼來源:anchor_target_layer.py

示例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) 
開發者ID:HKUST-Aerial-Robotics,項目名稱:Stereo-RCNN,代碼行數:11,代碼來源:proposal_layer.py


注:本文中的model.utils.config.cfg.FPN_FEAT_STRIDES屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。