omarsayed7 / Deep-Emotion

Facial Expression Recognition Using Attentional Convolutional Network, Pytorch implementation
249 stars 73 forks source link

Question about the code about model #5

Closed yangqian-qian closed 3 years ago

yangqian-qian commented 3 years ago

The spatial transformation network proposed in this paper is applied to the last layer's feature maps, but it is applied to the input image in the code provided, and I used the fer2013 dataset to train the network, but I only got 55% accuracy, which is much lower than the data provided in the paper. Why? I hope you can tell me about it. Thank you very much!

QingyangZhang commented 3 years ago

The spatial transformation network proposed in this paper is applied to the last layer's feature maps, but it is applied to the input image in the code provided, and I used the fer2013 dataset to train the network, but I only got 55% accuracy, which is much lower than the data provided in the paper. Why? I hope you can tell me about it. Thank you very much!

I got the same result ! The code is SHIT !

hejingwen2019102936 commented 3 years ago

me too

QingyangZhang commented 3 years ago

There is no attention layers in this implement, it is just a simple CNN with six conv layers, even worser. In other project, I got 66% acc in 23 epochs with my Xception-Net easily on FER2013 DB. HOW DID THIS COMMIT GOT THESE STARS ? UNBELIEABLE !

yangqian-qian commented 3 years ago

There is no attention layers in this implement, it is just a simple CNN with six conv layers, even worser. In other project, I got 66% acc in 23 epochs with my Xception-Net easily on FER2013 DB. HOW DID THIS COMMIT GOT THESE STARS ? UNBELIEABLE !

well, this code has attention mechanism, there is an stn function in deep_ emotion.py, which implements the attention mechanism on the spatial channel。

omarsayed7 commented 3 years ago

There is no attention layers in this implement, it is just a simple CNN with six conv layers, even worser. In other project, I got 66% acc in 23 epochs with my Xception-Net easily on FER2013 DB. HOW DID THIS COMMIT GOT THESE STARS ? UNBELIEABLE !

This code has "stn" function in deep_emotion.py, also feel free to modify the code and if you got better results you can pull request the modifications. it's just practicing, not the official implementation of the paper, also it's open-source anyone can modify and contribute.

nanhui69 commented 2 years ago

implements

这个模型你最后用了么?