nondefaced_detector.models.model.ConvBNrelu¶
-
ConvBNrelu(x, filters=32, kernel=3, strides=1, padding='same')[source]¶ A layer block of one convolutional, one batch normalization, and one non-linear activation sequence.
- Parameters
x (
tf.Tensorof rank 4+) – The input keras tensor object to instantiate a keras modelfilters (int, optional, default=32) – The dimensionality of the output space (i.e. the number of output filters in the convolution).
kernel (int, optional, default=32) – An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window. Can be a single integer to specify the same value for all spatial dimensions.
strides (int) – Specifying the strides of the convolution along the height and width. Can be a single integer to specify the same value for all spatial dimensions.
padding (one of "valid" or "same" (case-insensitive)) – “valid” means no padding. “same” results in padding evenly to the left/right or up/down of the input such that output has the same height/width dimension as the input.
- Returns
A tensor of rank 4+.
- Return type
tf.Tensor