Giter VIP home page Giter VIP logo

fecnet's Introduction

FECNet

A Keras implementation of FECNet, which proposed in "A Compact Embedding for Facial Expression Similarity"

The original paper is "A Compact Embedding for Facial Expression Similarity"

I implemented the original structure with Keras 2.2.0

Using Tensorflow1.3.0 backend

Training device: GTX 1060 6G

Due to the limitation of device, I didn't train the model with whole FEC dataset.

Dataset link: FEC

Step one

Download the FEC dataset to the data/

Step two

Run the image_extract.py frist, then run the export_train_label (If you are in China, a VPN is necessary. I strongly suggest you rent a oversea server to run the code and download those images, this will save you a lot of time.)

Step three

Run the FEC.py to train a model, or you can use the create_model method in you own training code. Like in Classifi2.py.

If your device is limite (like me), I suggest you set a very small learning rate (less than 0.0005) because the model will be very easy to overfit.


Update I'm not sure why I still couldn't get good result as the original paper. Maybe because the device limitation so that I could only set a small batch size. If anyone find the bug in my code, plz create a pull request.

I think there may have some problem in triplet loss part or read triplet images part, if you find it, please tell me, thanks.

If you like this project, offer me a star!

fecnet's People

Contributors

gerardliu96 avatar

Watchers

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