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


Python retinanet.build_retinanet方法代碼示例

本文整理匯總了Python中maskrcnn_benchmark.modeling.rpn.retinanet.retinanet.build_retinanet方法的典型用法代碼示例。如果您正苦於以下問題:Python retinanet.build_retinanet方法的具體用法?Python retinanet.build_retinanet怎麽用?Python retinanet.build_retinanet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在maskrcnn_benchmark.modeling.rpn.retinanet.retinanet的用法示例。


在下文中一共展示了retinanet.build_retinanet方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: build_rpn

# 需要導入模塊: from maskrcnn_benchmark.modeling.rpn.retinanet import retinanet [as 別名]
# 或者: from maskrcnn_benchmark.modeling.rpn.retinanet.retinanet import build_retinanet [as 別名]
def build_rpn(cfg, in_channels):
    """
    This gives the gist of it. Not super important because it doesn't change as much
    """
    if cfg.MODEL.RETINANET_ON:
        return build_retinanet(cfg, in_channels)

    return RPNModule(cfg, in_channels) 
開發者ID:Res2Net,項目名稱:Res2Net-maskrcnn,代碼行數:10,代碼來源:rpn.py

示例2: build_rpn

# 需要導入模塊: from maskrcnn_benchmark.modeling.rpn.retinanet import retinanet [as 別名]
# 或者: from maskrcnn_benchmark.modeling.rpn.retinanet.retinanet import build_retinanet [as 別名]
def build_rpn(cfg):
    """
    This gives the gist of it. Not super important because it doesn't change as much
    """
    if cfg.MODEL.RETINANET_ON:
        return build_retinanet(cfg)

    return RPNModule(cfg) 
開發者ID:mlperf,項目名稱:training,代碼行數:10,代碼來源:rpn.py

示例3: build_rpn

# 需要導入模塊: from maskrcnn_benchmark.modeling.rpn.retinanet import retinanet [as 別名]
# 或者: from maskrcnn_benchmark.modeling.rpn.retinanet.retinanet import build_retinanet [as 別名]
def build_rpn(cfg, in_channels):
    """
    This gives the gist of it. Not super important because it doesn't change as much
    """
    # add by hui ###############################
    if cfg.MODEL.LOC_ON:
        return build_location_net(cfg, in_channels)
    if cfg.MODEL.FCOS_ON:
        if cfg.MODEL.FCOS.CASCADE_ON:
            return build_cascade_fcos(cfg, in_channels)
        else:
            return build_fcos(cfg, in_channels)
    if cfg.MODEL.GAU_ON:
        return build_gaussian_net(cfg, in_channels)
    ############################################################
    if cfg.MODEL.RETINANET_ON:
        # add by hui ###############################
        if cfg.FREEANCHOR.FREEANCHOR_ON:
            return retinanet_fa.build_retinanet(cfg, in_channels)
        ############################################################
        return build_retinanet(cfg, in_channels)

    return RPNModule(cfg, in_channels)


#  ##################### add by hui 
開發者ID:ucas-vg,項目名稱:TinyBenchmark,代碼行數:28,代碼來源:rpn.py


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