While training i am getting a key error, i know what it means bu t still i am not getting able to counter the error , plz if you can help?
Getting an error while training
hey @saksham_thukral ,
you might have indexed your dictionary with image_name and extension. Kindly have a look at it , it would only image name , without extension.
Just change it.
If this is not the error , then kindly brief about it and also share code link .
code link: https://drive.google.com/file/d/1iEhSV0mLgI8DzXFRDsUagp45XfkzTHRs/view?usp=sharing
I now replicated the code as that in video, the whole code, but still getting the same error
hey @saksham_thukral ,
in your data_generator you used this code:
photo = encoding_train[key+".jpg"]
but you have initialized your encoding_train without image extension. So just kindly correct that as:
photo = encoding_train[key]
it will work fine.