Giter Site home page Giter Site logo

emotion_inference_server's Introduction

Emotion Inference Server

This project is a part of the course CS4270: Conversational Agents at Delft University of Technology.

Detects users emotion based on captured frame. API calls are made to this server from the conversational agent MathTutor. The code for the MathTutor can be found here.

Dependencies

Make sure the following dependencies are installed. We recommened using a new conda environment.

  • python=3.8
  • pytorch <= 1.8.1
  • scikit-learn
  • numpy
  • pandas
  • matplotlib

Links to EMOTIC dataset

This project uses the EMOTIC dataset and follows the methodology as introduced in the paper 'Context based emotion recognition using EMOTIC dataset'.

To make it easier for you we have hosted the EMOTIC dataset as well, if you intend to make use of it.

Link to data: https://tud365.sharepoint.com/:f:/s/ConversationalAgents2021/EoSyoFarxCJFoZrfkgft3iQBnpRRPZNavJ6La5ZfRhrFXw?e=61LcKf

If you do not wish to train the model from scratch, section 12 will show you how you can use pretrained versions of the model along with a few examples

Pretrained model files located at OneDrive.

Implementation Details

To run the inference server

  1. Execute app.py
  2. Server runs on localhost port 5000
  3. API call http://127.0.0.1:5000/api/v1/getEmotion returns the emotion with the highest probabilty
  4. In case the model fails it returns "Error"

emotion_inference_server's People

Contributors

sayakmukherjee avatar

Watchers

James Cloos avatar  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.