NOTE: Deployment of ML models has been evolved a lot. At the time this projects is created, there were no(or very little) guidelines for deploying a Pytorch model properly. The methods might be outdated. Use this project only conceptually.
This project is the implementation of the paper Show and Tell: A Neural Image Caption Generator
Please visit below to see deployed web app.
http://omerkirbiyik.com/caption-it
Training
- Clone repository
- Download dataset with
src/download_dataset.sh
- Preprocess with
src/build_vocab.py
andsrc/resize.py
- Train model giving appropriate arguments with
src/train.py
Prediction
- Make a nginx configuration to run Flask app. This part can be tricky. See this link for further.