Freezing the image captioning model