Generating captions for your own photos
Training a good image captioning system is only one part of the equation. To actually use it, we must perform a series of steps, akin to the ones we executed during the training phase.
In this recipe, we'll use a trained image captioning network to produce textual descriptions of new images.
Let's get started!
Getting ready
Although we don't need external dependencies for this particular recipe, we need access to a trained image captioning network, along with the cleaned captions that will be used to fit it. I highly recommend that you complete the Implementing a reusable image caption feature extractor and Implementing an image captioning network recipes before tackling this one.
Are you ready? Let's start captioning!
How to do it…
Follow this series of steps to produce captions for your own images:
- As usual, let's begin by importing the necessary dependencies:
import glob import...