Giter Club home page Giter Club logo

face-age-invariant's Introduction

Face-Age-Invariant

Project in data science ( 1DL505, UPPSALA, Prof. Anders Hast)

1. Data source

Currently we are using AgeDB datasetthe first manually collected, in-the-wild age database, including almost Europeans or some Africans, almost no Asian faces. https://ibug.doc.ic.ac.uk/resources/agedb/

2. Data cleaning

From raw datasets, we noticed the labels of some pictures are wrong. So we have to revise them or delete them directly.

  1. remove all pictures with more than one face image 49 pictures are detected to have more than one face.

  2. fix wrong "gender" image Detailed wrong "gender" information has record. The dataset after cleaning can be download here.

3. Picture re-organization

The dataset is sorted to get the serial number of each person. Every picture is renamed by the age.jpg.

  1. sort by name, get the number of pictures in every age range;
  2. filter the "total pictures" less than 8
  3. change the file name

4. Generate comparisons.txt

In every person, we need to generate the comparions of all his/her pictures. And save this txt, it can speed up our model.

5. Comparisons of three models

We have applied the three models

  1. insightface
  2. insightface_paddle (namely paddle): Paddle_paddle is based on insightface.(https://pypi.org/project/insightface-paddle/)
  3. Deepface

To generate three .txt, it is result of three models run by uppmax. And we also recorded the running time.

6. Uppmax

First of all, you have to request the core time by command ’interactive -A snic2022-22-1123 -n 20 -t 02:00:00’ otherwise, you will be limited because high-frequency calculations. And you have to create own virtual environment to install some packages, otherwise access denied. To parallelize, you must def to_parallel(start) Speed comparisons My own computer is about 60 hours, 20 cores at the same time is about 2.5 hours.

7. Data analyzing and Data Visualization

comparison of three methods
1 In same age-range
2 Age-range with other ranges

8. VECTOR

For vector, first we also generate the vector of all pictures(.csv) for future use.
1.Plot the vectors of all pictures in one plot: PCA ; t-SNE
2.Plot the vector fo one person: PCA ; t-SNE

face-age-invariant's People

Contributors

rebeccalct avatar yiijie avatar

Stargazers

Perry Lin avatar

Watchers

Kostas Georgiou 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.