Convolutional Neural Network (CNN) project to identify the class of input image. In this project the input images are divided into one of two classes which are Dogs and Cats, and the model is trained and tested over 300 unique images.
The link to the dataset used: https://www.kaggle.com/datasets/samuelcortinhas/cats-and-dogs-image-classification/data
The dataset is divided into two folders, one for each class. The dataset is further divided into training and testing data. The training data is used to train the model and the testing data is used to test the model.
The model is trained using the training data and then tested using the testing data. The model is trained using a Convolutional Neural Network (CNN) and the accuracy of the model is calculated using the testing data.
The model is trained using the following layers:
- Convolutional Layer
- Max Pooling Layer
- Flatten Layer
- Dense Layer
- Output Layer
The model is trained using the following parameters:
- Loss Function: Binary Cross Entropy
- Optimizer: Adam
- Metrics: Accuracy
The model is trained using the following hyperparameters:
- Epochs: 25
- Batch Size: 32
The model is trained using the following image preprocessing techniques:
- Image Data Generator
- Flow From Directory
- Image Resizing
- Image Normalization
The model is trained using the following steps:
- Data Preprocessing
- Data Augmentation
- Model Building
- Model Compilation
- Model Training
- Model Evaluation
- Model Visualization
The model is trained using the following results:
- Training Accuracy: 0.9933
- Testing Accuracy: 0.9667
- Training Loss: 0.0273
- Testing Loss: 0.1063
The model is trained using the following conclusions:
- The model is trained using a Convolutional Neural Network (CNN).
- The model is trained using the training data and then tested using the testing data.
- The model is trained using a Binary Cross Entropy loss function, Adam optimizer, and Accuracy metrics.
- The model is trained using 25 epochs and a batch size of 32.
- The model is trained using a data augmentation and image preprocessing techniques.
- The model is trained using a Confusion Matrix, Classification Report, Accuracy Score, and Loss Score.
- The model is trained using a visualization techniques.