omarsayed7/Deep-Emotion

Test dataset

Closed this issue · 0 comments

Why in test.csv dataset of fer2013 do it search for emotion column? Test.csv doesnt have emotion column.. there i show the issue:

File "main.py", line 104, in
validation_dataset= Plain_Dataset(csv_file=validationcsv_file, img_dir = validation_img_dir, datatype = 'val', transform = transformation)
File "/content/Deep-Emotion/data_loaders.py", line 23, in init
self.lables = self.csv_file['emotion']
File "/usr/local/lib/python3.7/dist-packages/pandas/core/frame.py", line 2906, in getitem
indexer = self.columns.get_loc(key)
File "/usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py", line 2900, in get_loc
raise KeyError(key) from err
KeyError: 'emotion'