Emotion recognition

CAN ANYONE TELL WHY THIS IS NOT WORKING.PLS HELP ME OUT WITH THIS



1 Like

Your img key error tells in the first code cell comes to NaN, so it is not found in the dataset or missing.

Make sure your file is reading the dataset correctly for train images and labels

Notice your labels shows fearful and happy but all img shows NaN.

It is Also stating in your dataframe, X col not all values are in string format, the main reason for your error.

Make sure your dataframe doesn’t have any null values and then convert all values in to string.

now also same error is showing up can you further guide fromhere



Hello @shikar1

Based on your first image only, seem you are trying to divided the training directory into img and labels without vectorizing.

I would suggest if your data is about images, first convert them all into tensor using tensor functions, then label images with tf.one_label based on number of classes/categories of your data.

Regards
DP