Code Monkey home page Code Monkey logo

machinelearning's Introduction

Facial Emotion Detection with DenseNet

This repository contains the project work for the module Machine Learning for Physicists 2024. The project focuses on implementing a DenseNet architecture for facial emotion detection and comparing its performance with a traditional Convolutional Neural Network (CNN) approach.

Table of Contents

Installation

To set up the environment and run the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/RnLe/MachineLearning.git
    cd MachineLearning
  2. Create and activate the conda environment:

    conda env create -f environment.yml
    conda activate tf_gpu2
  3. Download the dataset from Google Drive and extract the .zip in the folder emotions_facial.

Usage

To execute the code, you can simply run the main.ipynb notebook. This notebook uses the optimal hyperparameters from the optuna.db file.

Files

  • main.ipynb: Main notebook, using optimal hyperparameters from optuna.db.
  • densenet.py: Implementation of the DenseNet class.
  • alternativeMethod_CNN.ipynb: Notebook for the alternative method.
  • hyperparam_optimization.py: Hyperparameter optimization using Optuna.

Note: The optimal hyperparameters are already provided in the project files.

Acknowledgments

This project was completed as part of the Machine Learning for Physicists 2024 module at TU Dortmund.

For any questions or issues, please feel free to contact the authors.


Enjoy exploring the project and feel free to contribute or provide feedback!

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.