This is a simple implementation of image caption, estimator_version is another implementation which is based on tf.Estimator
- python 3.6
- tensorflow (>=1.4)
- Keras
- h5py
-
git clone
-
download coco image caption annotations and images from
here
. nameannotations
andimages
respectively and put them in the same directory. -
cd image_caption
-
create symbolic link
ln -s /path/to/data ./data
- do the preprocessing
python prepro.py
- for training, please specify the parameters in
train.sh
and
sh train.sh
- for inference, please specify the image path in
inference.sh
and
sh inference.sh
it will produce a caption of the image