本文整理汇总了Python中maskrcnn_benchmark.modeling.registry.ROI_BOX_FEATURE_EXTRACTORS属性的典型用法代码示例。如果您正苦于以下问题:Python registry.ROI_BOX_FEATURE_EXTRACTORS属性的具体用法?Python registry.ROI_BOX_FEATURE_EXTRACTORS怎么用?Python registry.ROI_BOX_FEATURE_EXTRACTORS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类maskrcnn_benchmark.modeling.registry
的用法示例。
在下文中一共展示了registry.ROI_BOX_FEATURE_EXTRACTORS属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: make_roi_box_feature_extractor
# 需要导入模块: from maskrcnn_benchmark.modeling import registry [as 别名]
# 或者: from maskrcnn_benchmark.modeling.registry import ROI_BOX_FEATURE_EXTRACTORS [as 别名]
def make_roi_box_feature_extractor(cfg, in_channels):
func = registry.ROI_BOX_FEATURE_EXTRACTORS[
cfg.MODEL.ROI_BOX_HEAD.FEATURE_EXTRACTOR
]
return func(cfg, in_channels)
示例2: test_roi_box_feature_extractors
# 需要导入模块: from maskrcnn_benchmark.modeling import registry [as 别名]
# 或者: from maskrcnn_benchmark.modeling.registry import ROI_BOX_FEATURE_EXTRACTORS [as 别名]
def test_roi_box_feature_extractors(self):
''' Make sure roi box feature extractors run '''
_test_feature_extractors(
self,
registry.ROI_BOX_FEATURE_EXTRACTORS,
FEATURE_EXTRACTORS_CFGS,
FEATURE_EXTRACTORS_INPUT_CHANNELS,
)
示例3: make_roi_box_feature_extractor
# 需要导入模块: from maskrcnn_benchmark.modeling import registry [as 别名]
# 或者: from maskrcnn_benchmark.modeling.registry import ROI_BOX_FEATURE_EXTRACTORS [as 别名]
def make_roi_box_feature_extractor(cfg):
func = registry.ROI_BOX_FEATURE_EXTRACTORS[
cfg.MODEL.ROI_BOX_HEAD.FEATURE_EXTRACTOR
]
return func(cfg)