Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Distorting the image on new images to predict #12

Open
handav opened this issue Apr 8, 2019 · 3 comments
Open

Distorting the image on new images to predict #12

handav opened this issue Apr 8, 2019 · 3 comments

Comments

@handav
Copy link

handav commented Apr 8, 2019

@ebarsoumMS @cha-zhang Is distorting the images a necessary step for new images I'm predicting on? Any other guidance for preprocessing new images to feed into the trained model?

@amirhfarzaneh
Copy link

amirhfarzaneh commented Apr 11, 2019

If you mean data augmentation by distortion then no! Data augmentation is a common practice only for the training set. Some people also do data augmentation on the test set to see if their network generalizing well or not. On the other hand, pre-processing is different than data augmentation. The authors apply pre-processing to enhance the contrast between the face and background. They are actually doing histogram equalization. You want your test set and train set to be of same distribution and since pre-processing is already applied on training set you have to apply it on the test set as well. You might notice performance decrease if you don't pre-process your test set. You can read more about other pre-processing techniques for FER applications in this survey: https://arxiv.org/abs/1804.08348

@handav
Copy link
Author

handav commented Apr 11, 2019 via email

@amirhfarzaneh
Copy link

amirhfarzaneh commented Apr 11, 2019

There is no cropping to the face that I'm aware of!

  • resize to 64x64
  • normalize
  • pre-process

These three steps are necessary!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants