A simple implementation of neural image caption generator
Please note that the code in this repo is for use in talks/workshops. There is a lot of room for improvement (in terms of both accuracy and efficiency) so that these aspects can be discussed during the sessions.
You may refer to Tensorflow's im2text Model for a stable and accurate implementation.
./scripts/mkdir.sh
./scripts/download_images.sh
python3 vgg16.py
. It would download the VGG16 model, produce the embeddings for a test image and compare with a pre-computed embedding.data_dir
in code/preprocess.py
and set mode_list=["train", "test", "debug"]
python3 preprocess.py
python3 train.py