We have understood basics of CNN in detail in my previous post post now this is time to write our own code and start create our own CNN model. Please have a look on below images to understand high level CNN architecture. We shown in picture we need multiple layers in CNN so we will create multiple layers for different purpose. So let's start writing code - First layer - Convolution layer Second layer - pooling layer (For minimize the size) Third layer - Flatten layer (To convert data from 2D to 1D) Fourth layer - Dense layer (For neural network) from keras.layers import Convolution2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers import Dense model = Sequential() model.add(Convolution2D(filters=32, kernel_size=(3,3), activation='relu', input_shape=(64,64,3) ) ) model.summary() Model: "sequential_3" _________________________________________________________________ Layer (type) ...
Hello! Welcome to my Technical blog. My Name is Rakesh Kumar and I’ve more than 7 years of experience in Linux and Open Source technologies. If you are looking for technical information about Linux(Server Hardening, Diagnostics & Troubleshooting etc), Ansible, OpenStack Cloud Solution, Containers(K8s/OCP), DevOps, Machine Learning and Nagios Event Monitoring tool.... you have come to the right place. "I believe Learning and earning shouldn't stop", This is my story!