KeyError: ‘2513260012_03d33305cf.jpg’ error while training the model. I get it that it might be because my encoding_train={} might be null right but i am getting a length of 6000
def train_model():
for i in range(epochs):
generator=data_generator(train_descriptions,encoding_train,word_to_index,max_len,number_pics_per_batch)
model.fit_generator(generator,epochs=1,steps_per_epoch=steps,verbose=1)
model.save("/model_weights/model_"+str(i)+".h5")
The loop is also not working
tried going step by step from the video