本文整理汇总了Python中nets.resnet_v2.resnet_v2方法的典型用法代码示例。如果您正苦于以下问题:Python resnet_v2.resnet_v2方法的具体用法?Python resnet_v2.resnet_v2怎么用?Python resnet_v2.resnet_v2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在模块nets.resnet_v2的用法示例。
在下文中一共展示了resnet_v2.resnet_v2方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _resnet_small
点赞 6
# 需要导入模块: from nets import resnet_v2 [as 别名]
# 或者: from nets.resnet_v2 import resnet_v2 [as 别名]
def _resnet_small(self,
inputs,
num_classes=None,
is_training=True,
global_pool=True,
output_stride=None,
include_root_block=True,
reuse=None,
scope='resnet_v2_small'):
"""A shallow and thin ResNet v2 for faster tests."""
block = resnet_v2.resnet_v2_block
blocks = [
block('block1', base_depth=1, num_units=3, stride=2),
block('block2', base_depth=2, num_units=3, stride=2),
block('block3', base_depth=4, num_units=3, stride=2),
block('block4', base_depth=8, num_units=2, stride=1),
]
return resnet_v2.resnet_v2(inputs, blocks, num_classes,
is_training=is_training,
global_pool=global_pool,
output_stride=output_stride,
include_root_block=include_root_block,
reuse=reuse,
scope=scope)
开发者ID:DetectionTeamUCAS,项目名称:R2CNN_Faste