CNN Implementation In Keras: tk.keras.layers.Conv2D()

Class Structure Of Conv2D:

tf.keras.layers.Conv2D(filters, kernel_size, strides=(1, 1), padding=”valid”, data_format=None, dilation_rate=(1, 1), groups=1, activation=None, use_bias=True, kernel_initializer=”glorot_uniform”, bias_initializer=”zeros”, kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, bias_constraint=None, **kwargs)

The commonly used arguments of tk.keras.layers.Conv2D() filters, kernel_size, strides, padding, activation.

      Arguments            

Meaning

filters The number of output filters in the convolution i.e., total feature maps
kernel_size A tuple or integer value specifying the height and width of the 2D convolution window
strides An integer or tuple/list of 2 integers, specifying the strides of the convolution along with the height and width.
padding “valid” means no padding. “same” means output has the same size as the input.
activation Non-Linear functions [relu, softmax, sigmoid, tanh]
use_bias Boolean, whether the layer uses a bias vector.
dilation_rate an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution. 
kernel_initializer Defaults to ‘glorot_uniform’.
bias_initializer  The initializer for the bias vector
kernel_constraint Constraint function applied to the kernel matrix
bias_constraint Constraint function applied to the bias vector

Python Tensorflow – tf.keras.layers.Conv2D() Function

In this article, we shall look at the in-depth use of tf.keras.layers.Conv2D() in a python programming language.

Similar Reads

Convolution Neural Network: CNN

Computer Vision is changing the world by training machines with large data to imitate human vision. A Convolutional Neural Network (CNN) is a specific type of artificial neural network that uses perceptrons/computer graphs, a machine learning unit algorithm used to analyze data. This data mainly involves images. A 3D  vector dimension is passed through feature maps and then this is downsampled using the Pooling technique. The widely used Pooling technique to downsample the image feature maps is MaxPooling and MeanPooling....

Application Of CNN:

Convolution Neural Network is widely used in Computer Vision Technology, the main application includes:...

CNN Implementation In Keras: tk.keras.layers.Conv2D()

Class Structure Of Conv2D:...

Convolution Neural Network Using Tensorflow:

Convolution Neural Network is a widely used Deep Learning algorithm. The main purpose of using CNN is to scale down the input shape. In the example below we take 4 dimension image pixels with a total number of 50 images data of 64 pixels. Since we know that an image is made of three colors i.e. RGB, thus the 4 value 3 denotes a color image....

Implementing keras.layers.Conv2D() Model:

...