Skip to content

This repository contains an image classification project using CNN algorithm.

License

Notifications You must be signed in to change notification settings

3idhun/Image-classification-using-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mamukka Lalettan Classifier

This repository contains code for training a convolutional neural network (CNN) to classify images of malayalam actors Mammootty and Mohanlal. The classifier distinguishes between the two actors and provides predictions with high accuracy.

Disclaimer

The images used in this project have been collected from various sources from the internet and are used solely for educational purposes. We do not claim ownership of these images, and they are included here only to demonstrate the functionality of the classifier.

Overview

The classifier is built using the Keras deep learning framework with a TensorFlow backend. It utilizes a CNN architecture to extract features from images and make predictions based on those features.

Dataset

The training and testing data consist of images of Mamukka and Lalettan collected from various sources. The dataset is divided into two directories: train and test, each containing subdirectories for each actor.

Model Architecture

The CNN model consists of three convolutional layers followed by max-pooling layers, a dropout layer for regularization, and fully connected layers for classification. The model is trained using the Adam optimizer with a learning rate of 0.000001.

Evaluation

The model achieves a training accuracy of 90.22% and a validation accuracy of 92.50% after 500 epochs of training. Evaluation metrics such as precision, recall, and F1-score demonstrate the model's effectiveness in distinguishing between Mamukka and Lalettan.

Prediction

The trained model can be used to predict the actor in unseen images.

Usage

To use the classifier, follow these steps:

Clone the repository:

git clone https://github.com/3idhun/image-classification-using-CNN.git

Navigate to the project directory

cd mamukka-lalettan-classifier

Install the required dependencies

pip install -r requirements.txt

Train the model

python train.py

Evaluate the model

python evaluate.py

Make predictions

python predict.py path/to/image.jpg

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains an image classification project using CNN algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published