Home

Awesome

FaceAttr-Analysis

This repo is for the adavanced training on deeping learning with the purpose of building a face attributes analysis application.

Plan

Dataset

Methods

Some model's codes are from PytorchInsight and pytorch.torchvision.Thx!

Experiment Result

Our Work

Solutionaverage accuracy(%)macro-precision(%)macro-recall(%)macro-F1(%)
Resnet10191.5379.8163.6768.52
GCnet10191.9479.4565.6469.94
SEnet10191.9579.8165.6469.99
Densenet12191.6479.2565.4269.81
SGEnet10191.6079.2365.4069.77
SKnet10191.9379.6965.5469.95
CBAMnet10191.4278.1265.3269.24
Resnet15291.9579.4665.9870.14

More detailed data can be seen in folder \result.

Some explanable results for the model by using Grad-CAM.

Bald.

Bald

Eyeglasses

Eyeglasses Eyeglasses

Female and Male

Male Male

Wear hat

hat

State of the Art

State of the art

The image is from this paper--FAN,Youtu Search, IJCAI 2018

Simple Dashbord

Done:

More study notes on the DailyNote.md

Usage

The pretrianed model Resnet18 is availabel. Click Google Drive .

Open the run.sh file, read the main.py and you can see the running arguments of model.

bash run.sh

If you want to train and test model by yourself, you can run this command:

nohup python main.py --model_type Resnet18 --batch_size 32 --epochs 128 --learning_rate 1e-3 --exp_version v1 &

If you want to visulize the model, you can download pretrianed model and see comments in main part in file featuremap_visulize.py for the usage, and just run:

python featuremap_visulize.py

Problems

Related Resource

Dependency & OS

pip install -r requirements.txt # requirements.txt created by cmd: pipreqs ./

linux 16.0.1

License

MIT.