GithubHelp home page GithubHelp logo

veb-101 / image-captioning Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 66.42 MB

Mini Project on paper "Show, attend and tell: Image Captioning with Visual Attention"

License: The Unlicense

Jupyter Notebook 100.00%
image-captioning prediction-caption neural-networks tensorflow2

image-captioning's Introduction

Image Captioning with Visual Attention


Open In Colab

  • View Notebook
  • Details about different runs of the project can be found on Weights & Biases
  • To run in Colab you need to add your kaggele's API token file
  • Final Architecture used:
    • Encoder: InceptionV3
    • Attention: Bahdanau's Soft attention
    • Decoder: LSTM unit
    • Embeddings: Glove Embedding (glove6b300d)

  • Some Outputs from the final run
  1. Real Caption: a man on snow skis who is performing a jump Prediction Caption: a man flying through the sky Attention Plot Image

  2. Real Caption: a couple of elephants that are by the pond Prediction Caption: a group of elephants relax along water in a body of water Attention Plot Image


  • ToDo
    • Applying beam Search
    • Applyling LearningRateScheduler
    • Making an interface
    • Tuning different Hyperparameters

  • Comments:
    • Code for ExponentialDecay added but not used in the run as evaluating takes a 3 hours on colab.
    • I have added a manual early stopping and saving weights for each epoch (all.zip)
    • Try decreasing vocab_size and increasing number of images used.
    • I couldn't find any resources for dynamically caching images and loading them directly during run time to save storage space. Numpy's memmap seems a good starting point.

image-captioning's People

Contributors

veb-101 avatar

Stargazers

Dipak Giri avatar  avatar

Watchers

 avatar  avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.