Skip to content

leeisack/Latent-OFER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latent-OFER: Detect, Mask, and Reconstruct with Latent Vectors for Occluded Facial Expression Recognition

background paper implementation

MAE: https://github.com/facebookresearch/mae

deep-SVDD: https://github.com/lukasruff/Deep-SVDD-PyTorch

SVDD: https://github.com/iqiukp/SVDD-Python

ViT: https://github.com/lucidrains/vit-pytorch

Preparation

  • Download pre-trained model of MSCeleb and move the file to ./models

dataset

Setting

The location of the label is here. "./datasets/EmoLael/label.txt The location of the images is here. "./datasets/Images/ The location of the PT files is here. "./datasets/PT_files/ The location of the pre-trained model is here. "./checkpoints/

Training

run:

CUDA_VISIBLE_DEVICES=0 python main.py

only test

There is a simple test to Latent-OFER model for a emotion inference:

CUDA_VISIBLE_DEVICES=0 python only_test.py

Grad CAM++ Reproduction

Our experiment of grad cam++ was based on the package grad-cam 1.3.1, which could be pulled by:

pip install grad-cam==1.3.1

Then, run the following code to dump the visual results. (Need to replace several variables manually.)

python run_grad_cam.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published