Captions generated for test images

Let's see what sort of captions are generated for the test images.

After 100 steps, the only thing that our model has learned is that the caption starts with an SOS token, and there are some words followed by a bunch of EOS tokens (see Figure 9.11):

Captions generated for test images

Figure 9.11: Captions generated after 100 steps

After 1,000 steps, our model knows to generate slightly semantic phrases and recognizes objects in some images correctly (for example, a man holding a tennis racket, shown in Figure 9.12). However, the text seems to be short and vague, and in addition, several images are described incorrectly:

Figure 9.12: Captions generated ...

Get Natural Language Processing with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.