April 2020
Intermediate to advanced
438 pages
12h 2m
English
First, clone the repository (using https://github.com/tensorflow/models/) to a folder in your local machine. Then, copy the models/tree/master/research/im2txt/im2txt folder to the models folder used in this chapter. Create a sub-folder, called cpt, and download the pre-trained model checkpoint file (model.ckpt-2000000) in cpt from https://drive.google.com/file/d/0Bw6m_66JSYLlRFVKQ2tGcUJaWjA/. Create an empty __init__.py file in im2txt to mark this folder as a Python package directory. The folder structure should look like this:

Let's import the required libraries using the following code block:
import os, sysimport tensorflow ...
Read now
Unlock full access