A Neural Image Caption Generator.
- Based on KranthiGV Show and Tell
- Which is based on Google Show and Tell GitHub
- Show and Tell Google Blog
sudo add-apt-repository ppa:webupd8team/java
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
sudo apt update && sudo apt install bazel
Based on Installing Bazel on Ubuntu
sudo pip install -U pip
sudo pip install tensorflow==1.0
sudo apt install p7zip-full
7z e model.7z.001
svn export https://github.com/tensorflow/models/trunk/research/im2txt
CHECKPOINT_PATH="/home/ubuntu/workspace/im2txt/model.ckpt-2000000"
VOCAB_FILE="/home/ubuntu/workspace/im2txt/word_counts.txt"
IMAGE_FILE="/home/ubuntu/workspace/im2txt/image.jpg"
cd im2txt/
bazel build -c opt //im2txt:run_inference
bazel-bin/im2txt/run_inference \
--checkpoint_path=${CHECKPOINT_PATH} \
--vocab_file=${VOCAB_FILE} \
--input_files=${IMAGE_FILE}
ERROR:
ERROR: python': double free or corruption (!prev)
sudo apt-get install libtcmalloc-minimal4
export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"