本文整理汇总了Python中maskrcnn_benchmark.modeling.registry.ROI_KEYPOINT_PREDICTOR属性的典型用法代码示例。如果您正苦于以下问题:Python registry.ROI_KEYPOINT_PREDICTOR属性的具体用法?Python registry.ROI_KEYPOINT_PREDICTOR怎么用?Python registry.ROI_KEYPOINT_PREDICTOR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类maskrcnn_benchmark.modeling.registry
的用法示例。
在下文中一共展示了registry.ROI_KEYPOINT_PREDICTOR属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: make_roi_keypoint_predictor
# 需要导入模块: from maskrcnn_benchmark.modeling import registry [as 别名]
# 或者: from maskrcnn_benchmark.modeling.registry import ROI_KEYPOINT_PREDICTOR [as 别名]
def make_roi_keypoint_predictor(cfg, in_channels):
func = registry.ROI_KEYPOINT_PREDICTOR[cfg.MODEL.ROI_KEYPOINT_HEAD.PREDICTOR]
return func(cfg, in_channels)
示例2: test_roi_keypoints_predictors
# 需要导入模块: from maskrcnn_benchmark.modeling import registry [as 别名]
# 或者: from maskrcnn_benchmark.modeling.registry import ROI_KEYPOINT_PREDICTOR [as 别名]
def test_roi_keypoints_predictors(self):
''' Make sure roi keypoint predictors run '''
for cur_in, cur_out, cur_cfg in _test_predictors(
self,
registry.ROI_KEYPOINT_PREDICTOR,
PREDICTOR_CFGS,
PREDICTOR_INPUT_CHANNELS,
hwsize=14,
):
self.assertEqual(cur_out.shape[0], cur_in.shape[0])
self.assertEqual(
cur_out.shape[1], cur_cfg.MODEL.ROI_KEYPOINT_HEAD.NUM_CLASSES)