MCPcopy
hub / github.com/tensorlayer/TensorLayer / VGG_static

Function VGG_static

tensorlayer/models/vgg.py:184–196  ·  view source on GitHub ↗
(layer_type, batch_norm=False, end_with='outputs', name=None)

Source from the content-addressed store, hash-verified

182
183
184def VGG_static(layer_type, batch_norm=False, end_with='outputs', name=None):
185 ni = Input([None, 224, 224, 3])
186 n = Lambda(
187 lambda x: x * 255 - np.array([123.68, 116.779, 103.939], dtype=np.float32).reshape([1, 1, 1, 3]), name='scale'
188 )(ni)
189
190 config = cfg[mapped_cfg[layer_type]]
191 layers = make_layers(config, batch_norm, end_with)
192
193 nn = layers(n)
194
195 M = Model(inputs=ni, outputs=nn, name=name)
196 return M
197
198
199def vgg16(pretrained=False, end_with='outputs', mode='dynamic', name=None):

Callers 2

vgg16Function · 0.85
vgg19Function · 0.85

Calls 4

InputFunction · 0.90
LambdaClass · 0.90
ModelClass · 0.90
make_layersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…