THIS IS THE ERROR i am getting
KeyError Traceback (most recent call last)
in ()
1 for i in range(epochs):
2 generator = data_generator(train_descriptions,encoding_train,word_to_idx,max_len,batch_size)
----> 3 model.fit_generator(generator,epochs=1,steps_per_epoch=steps,verbose=1)
4 model.save(’./model_weights/model_’+str(i)+’.h5’)
9 frames
in data_generator(train_descriptions, encoding_train, word_to_idx, max_len, batch_size)
7 n += 1
8
----> 9 photo = encoding_train[key+".jpg"]
10 for desc in desc_list:
11
KeyError: ‘2513260012_03d33305cf.jpg’