Skip to content

adamzu/CPSC490

Repository files navigation

image-caption-generation

Final project for CPSC 490

To install:

Ensure python3 and pip3 are installed. Then do the following:

  1. pip install virtualenv
  2. virtualenv -p python3 venv; source venv/bin/activate
  3. pip install -r requirements.txt
  4. npm install
  5. Replace the line with PATH in ~/.profile with the following: PATH="$HOME/bin:$HOME/.local/bin:./node_modules/.bin:$PATH"
  6. Install and set up Tensorflow and its dependencies (on a computer with a GPU only)

To run:

In one terminal window, run ./setup.sh or:

  1. export FLASK_APP=capgen
  2. export FLASK_DEBUG=1
  3. source venv/bin/activate
  4. webpack --watch &
  5. python run.py

To access from ssh connection:

While the Flask server and Webpack are running, run lt --port=5000 in a separate terminal window (ensure localtunnel is installed first). Then, open the returned link in your web browser. Or just use port forwarding...

About

Final project for CPSC 490

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published