Off-TANet:A lightweight neural micro-expression recognizer with optical flow features and integrated attention mechanism

August 19, 2022 ยท View on GitHub

ResearchGate: https://www.researchgate.net/publication/355545710_Off-TANet_A_Lightweight_Neural_Micro-expression_Recognizer_with_Optical_Flow_Features_and_Integrated_Attention_Mechanism?_iepl%5BgeneralViewId%5D=n5Mw0uLS3a9Hzu6kqDKN0QWRouBsQwulh31b&_iepl%5Bcontexts%5D%5B0%5D=searchReact&_iepl%5BviewId%5D=C4Cc0QrPkbdErfXawaM1dZ1tBdzXC6U1iUxh&_iepl%5BsearchType%5D=publication&_iepl%5Bdata%5D%5BcountLessEqual20%5D=1&_iepl%5Bdata%5D%5BinteractedWithPosition1%5D=1&_iepl%5Bdata%5D%5BwithEnrichment%5D=1&_iepl%5Bposition%5D=1&_iepl%5BrgKey%5D=PB%3A355545710&_iepl%5BtargetEntityId%5D=PB%3A355545710&_iepl%5BinteractionType%5D=publicationTitle

Bilibili: https://www.bilibili.com/video/BV1Ab4y1E7y2?spm_id_from=333.999.0.0

How to Run the Code

1.Install packages mentioned in requirements.txt

pip install -r requirements.txt

2.Modify arguments in train_arg.py

3.Get CASME,CASME2 and CASME-2 datasets from the link below,put the cropped pictures under the dataset directory.

The name of the subfolders should be casme1_cropped,casme2_cropped and casme^2_cropped

CASME - http://fu.psych.ac.cn/CASME/casme.php

CASME2 - http://fu.psych.ac.cn/CASME/casme2.php

CASME-2 - http://fu.psych.ac.cn/CASME/cas(me)2.php

4.Run the code

python train.py

The results can be seen in this chart below.

ModelUARUF1Total ParamsTotal FlopsTotal MemR+W
Off-ApexNet0.58320.56502.66M3.87M10.35MB
STSTNet0.55840.5399162,051526.98K0.78MB
Dual-Inception0.61670.58146.45M12.64M26.27MB
MACNN0.68350.666070.57M793.67M297.86MB
Micro-Attention0.70860.702153.38M1.0G237.97MB
Off-TANet0.73150.724259,40330.08M5.64MB

The required Python packages are in requirements.txt, and other environments of ours are as follows:

Operating system: Ubuntu 16.04.6 LTS

CPU: Intel(R) Xeon(R) Gold 5118 CPU@ 2.30GHz

GPU: Tesla K80 (10G video RAM)

CUDA Version: 9.0