Code Monkey home page Code Monkey logo

facial_emotion_recognition's Introduction

Facial Emotion Recognition

This repository contains code for a Facial Emotion Recognition project. The goal of this project is to build and train a deep learning model that can recognize emotions from facial expressions in images.

Table of Contents

Introduction

In this project, we utilize a convolutional neural network (CNN) architecture to perform facial emotion recognition. The code is implemented using PyTorch and includes the following components:

  • Loading a file containing image data and labels
  • Data preprocessing and transformation
  • Creating custom datasets and data loaders
  • Model architecture definition
  • Model training and evaluation

Dataset

The dataset used for this project is FER2013, which contains facial expression images labeled with various emotions. The dataset is split into training and validation sets.

Installation

  1. Clone this repository:

    git clone https://github.com/Aayush518/Facial_Emotion_Recognition.git
    cd Facial_Emotion_Recognition
  2. Install the required dependencies:

    pip install torch pandas scikit-learn torchvision numpy matplotlib Pillow torchsummary tqdm   

Usage

  1. Place the FER2013 dataset CSV file (e.g., fer2013_mini_XCEPTION.csv) in the project directory.

  2. Run the data preprocessing and model training code:

    python Train_Model.py
  3. Evaluate the trained model:

    python Trained.py

Results

Include information about the model's performance on the validation set and any additional insights or visualizations.

facial_emotion_recognition's People

Contributors

aayush518 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.