Training and testing caption generation

If you have followed the Setting up the TensorFlow Object Detection API section in Chapter 3, Detecting Objects and Their Locations, then you already have the im2txt folder installed; otherwise simply cd to your TensorFlow source root directory then run:

 git clone https://github.com/tensorflow/models

One Python library you probably haven't installed is the Natural Language ToolKit (NLTK) , one of the most popular Python libraries for natural language processing. Just go to its website at http://www.nltk.org for installation instructions.

Now, follow these steps to train the model:

  1. Set up a location to save the 2014 MSCOCO image captioning training and validation dataset by opening a Terminal and ...

Get Intelligent Mobile Projects 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.