本文整理匯總了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)
示例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)
示例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