GithubHelp home page GithubHelp logo

Comments (4)

oarriaga avatar oarriaga commented on June 3, 2024

Hello @swapgit I am happy to hear that you like the project. In order to improve the emotion classification module we could try several things:

  • pre-train or train along another emotion dataset (I have tried to pre-train with the KDEF dataset but it didn't show any perceivable increase in accuracy).
  • The labels are not uniformly distributed consequently we could try to re-train with the existent dataset using a weighted loss.

from face_classification.

csbotos avatar csbotos commented on June 3, 2024

Thank you! this repo is a miracle :)

[EDITED] The using the initial settings the preloaded weights would yield a lower performance, however it can be later trained to the reported 66%

How about using balanced training batches (so each batch will contain same amount of samples from each class)? I know it would represent a different class distribution, where the deviation of the small sets would be narrow - for me it worked better than class weights.

from face_classification.

oarriaga avatar oarriaga commented on June 3, 2024

Hello @csbotos I am happy to hear you like the project :). Yes, we can also try to have balanced batches. The drop in accuracy could be related to not using the correct optimizer weights. I encountered an issue in keras in which the optimizer weights were not compatible between keras versions; therefore, I either deleted them entirely from the hdf5 files or I set the compile flag to False when loading the models.

from face_classification.

csbotos avatar csbotos commented on June 3, 2024

Yeah, I just discovered that the learning rate could be too raw for the pretrained network, now the algorithm topped again at 66%

from face_classification.

Related Issues (20)

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.