mirror of
https://gitcode.com/gh_mirrors/fe/FERPlus.git
synced 2025-12-30 05:22:26 +00:00
Add license banner and the training data layout structure.
This commit is contained in:
3573
data/FER2013Test/label.csv
Normal file
3573
data/FER2013Test/label.csv
Normal file
File diff suppressed because it is too large
Load Diff
28558
data/FER2013Train/label.csv
Normal file
28558
data/FER2013Train/label.csv
Normal file
File diff suppressed because it is too large
Load Diff
3579
data/FER2013Valid/label.csv
Normal file
3579
data/FER2013Valid/label.csv
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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 os
|
||||
import csv
|
||||
@@ -164,6 +169,7 @@ class FERPlusReader(object):
|
||||
def _process_target(self, target):
|
||||
'''
|
||||
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"
|
||||
Probability: pick one emotion based on the probability distribtuion.
|
||||
Multi-target:
|
||||
|
||||
@@ -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
|
||||
from PIL import Image
|
||||
from scipy import ndimage
|
||||
|
||||
@@ -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 sys
|
||||
|
||||
@@ -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 time
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user