Skip to content

Deep learning image caption generator, written for UIowa Hackathon 2021

Notifications You must be signed in to change notification settings

rbridges12/AI-caption-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Caption Generator

This is a web app that allows you to upload an image file, generate a caption for it using deep learning, then automatically post the image an caption to our Twitter bot @Bot2021U.

Developed for University of Iowa Hackathon 2021 by Raymond Yang, Mitchell Hermon, Ethan D'Allesandro, and Riley Bridges. Devpost link here.

Host the App

  1. Make a secrets.py file to store your Twitter API keys:
API_KEY = ''
API_SECRET_KEY = ''
BEARER_TOKEN = ''
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = ''
  1. Set Flask app to app.py:

    • export FLASK_APP=app.py on linux
  2. flask run

Train the Model

  1. Change image_prep.py, text_prep.py, progressive_loading.py, evaluate.py, create_tokenizer.py to work with the desired dataset
  2. bash train_ai.sh

About

Deep learning image caption generator, written for UIowa Hackathon 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published