MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / resnet_group

Function resnet_group

examples/FasterRCNN/modeling/backbone.py:160–165  ·  view source on GitHub ↗
(name, l, block_func, features, count, stride)

Source from the content-addressed store, hash-verified

158
159
160def resnet_group(name, l, block_func, features, count, stride):
161 with tf.variable_scope(name):
162 for i in range(0, count):
163 with tf.variable_scope('block{}'.format(i)):
164 l = block_func(l, features, stride if i == 0 else 1)
165 return l
166
167
168def resnet_c4_backbone(image, num_blocks):

Callers 3

resnet_c4_backboneFunction · 0.70
resnet_conv5Function · 0.70
resnet_fpn_backboneFunction · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…