• Input to the GRU: The feature vector produced by the CNN serves as the initial input to the GRU. Additionally, the GRU takes as input the previously generated words in the caption, allowing it to generate the next word in the sequence based on both the image features and the context of the previously generated words.