8.1.1.3.1.10. blueoil.datasets.fer_2013

8.1.1.3.1.10.1. Module Contents

8.1.1.3.1.10.1.1. Classes

FER2013

Dataset loader class for loading FER2013 format csv.

8.1.1.3.1.10.1.2. Functions

_load_csv(path)

blueoil.datasets.fer_2013._load_csv(path)
class blueoil.datasets.fer_2013.FER2013(subset='train', batch_size=100, *args, **kwargs)

Bases: blueoil.datasets.base.Base

Dataset loader class for loading FER2013 format csv.

FER2013 format csv:

emotion,pixels,Usage e1,pixels1,usage1 e2,pixels2,usage2 …

where

e : a integer in [0, 6] pixels : 48 x 48 integers in [0, 255] separated with one space usage : a string, one of Training or PublicTest or PrivateTest

classes = ['Angry', 'Disgust', 'Fear', 'Happy', 'Sad', 'Surprise', 'Neutral']
image_size = 48
num_classes
available_subsets = ['train', 'validation', 'test']
extend_dir = FER2013
property num_classes(self)

Returns the number of classes

property num_per_epoch(self)

Returns the number of datas in the data subset

_load_data(self, path)
_images_and_labels(self)
_all_files(self)
__getitem__(self, i)

Returns the i-th item of the dataset.

__len__(self)

returns the number of items in the dataset.