Add license banner and the training data layout structure.

This commit is contained in:
Emad Barsoum
2016-11-10 18:21:34 -08:00
parent d6cfa2ff49
commit f1a8cb22f9
7 changed files with 35731 additions and 1 deletions

3573
data/FER2013Test/label.csv Normal file

File diff suppressed because it is too large Load Diff

28558
data/FER2013Train/label.csv Normal file

File diff suppressed because it is too large Load Diff

3579
data/FER2013Valid/label.csv Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,8 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
#
import sys import sys
import os import os
import csv import csv
@@ -164,6 +169,7 @@ class FERPlusReader(object):
def _process_target(self, target): def _process_target(self, target):
''' '''
Based on https://arxiv.org/abs/1608.01041 the target depend on the training mode. Based on https://arxiv.org/abs/1608.01041 the target depend on the training mode.
Majority or crossentropy: return the probability distribution generated by "_process_data" Majority or crossentropy: return the probability distribution generated by "_process_data"
Probability: pick one emotion based on the probability distribtuion. Probability: pick one emotion based on the probability distribtuion.
Multi-target: Multi-target:

View File

@@ -1,4 +1,9 @@
import numpy as np #
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
#
import numpy as np
import random as rnd import random as rnd
from PIL import Image from PIL import Image
from scipy import ndimage from scipy import ndimage

View File

@@ -1,3 +1,7 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
#
import os import os
import sys import sys

View File

@@ -1,3 +1,8 @@
#
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
#
import sys import sys
import time import time
import os import os