hey @singh.saurav701 ,
I don’t know the actual reason behind that error , but i am sure that is because of our data generator .
But yeah i did some changes in it and it worked correctly. Just the way you wanted it to be.
Change Done :
new Data generator output to be as
yield {"image_input":np.array(x1),"seq_input":np.array(x2)},np.array(y)
and added name parameter in Model Input Layers , being the same name as i used in above mentioned keys.
input_img_features = Input(shape=(2048,),name="image_input")
input_captions = Input(shape=(max_len,),name="seq_input")
I hope this helps you .