Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise KeyError(key) from err KeyError: 'emotion' #13

Closed
xiaotian02020 opened this issue Mar 7, 2022 · 1 comment
Closed

raise KeyError(key) from err KeyError: 'emotion' #13

xiaotian02020 opened this issue Mar 7, 2022 · 1 comment

Comments

@xiaotian02020
Copy link

After I successfully run the command (python main.py -s setup -d data), I got the corresponding photos and table. However, when I run the command (python main.py -t train -d data), I still did not start the training.

The error was as follows : KeyError: 'emotion'
Traceback (most recent call last):
File "main.py", line 104, in
validation_dataset= Plain_Dataset(csv_file=validationcsv_file, img_dir = validation_img_dir, datatype = 'val',
transform = transformation)
self.lables = self.csv_file['emotion']
indexer = self.columns.get_loc(key)
raise KeyError(key) from err
KeyError: 'emotion'

How to solve this problem, thank you

@omarsayed7
Copy link
Owner

Hello, There were changes in kaggle dataset, so I updated the code to work with the new shape of the dataset
bccde6b

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

No branches or pull requests

2 participants