Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Front module

The following code describes the front module:

def create_front_module(input, num_channels, bottleneck):    _x = Conv2D(64, kernel_size=(7, 7), strides=(2, 2), padding='same',         activation='relu', name='front_conv_1x1_x1')(input)    _x = BatchNormalization()(_x)    _x = bottleneck(_x, num_channels // 2, 'front_residual_x1')    _x = MaxPool2D(pool_size=(2, 2), strides=(2, 2))(_x)    _x = bottleneck(_x, num_channels // 2, 'front_residual_x2')    _x = bottleneck(_x, num_channels, 'front_residual_x3')    return _xfront_features = create_front_module(input, num_channels, bottleneck)

As discussed previously, this consists of a Conv2D block with a total of 64 filters with a filter size of 7 x 7 and a stride of 2. The output of the block is (None, 32, 32,6) ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content