Coder Social home page Coder Social logo

dipakbagal / cartoon-emotion-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riti1302/cartoon-emotion-recognition

0.0 0.0 0.0 123.91 MB

Tom & Jerry cartoon facial emotion recognition

Python 7.44% Shell 0.04% Jupyter Notebook 92.52%

cartoon-emotion-recognition's Introduction

Cartoon-Emotion-Recognition

Prerequisites

This Repository is maintained on Python 3.7 version.

  • CPython 3.6.9
  • numpy 1.18.2
  • pandas 1.0.3
  • torch 1.4.0
  • torchvision 0.5.0
  • detectron2 0.1.1
  • tensorflow 1.15.0

Dataset

Dataset consists of a training video and testing video along with csv file which contains the emotions of the cartoon corresponding to each frame (frame rate = 5) of the video.

Preprocessing

Dataset is in the form of video file from which frames are needed to be extracted. Frames from the video can be obtained using get_frames.py.
The faces for face detection are annotated using labelImg. The annotations for each frame can be transferred to a csv file using xml_to_csv.py.

Dataset for emotion recognition can be obtained using get_dataset.py. It takes a csv file containing the coordinates for the faces and its corresponding emotion and create a dataset for the emotion recognition model.
If you want to train the emotion recognition model on a custom dataset then keep the dataset inside training_dataset images of emotion in a saperate folder.

Training

Face Detection model

The training of face detection model is done in Cartoon_Face_Detection.ipynb. The trained weights can be downloaded from here. Function for prediction on a new image is also present in this notebook.

Emotion Recognition Model

Run the train.sh file to start the training.
Prediction on a new image can be done using get_prediction.py

Outputs

cartoon-emotion-recognition's People

Contributors

riti1302 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.