Giter Club home page Giter Club logo

imagecaptiongenerator's Introduction

DESCIT

Image Caption Generation

The project uses Convolution Neural Network(CNN) and Long Short Term Memory(LSTM) technique of Recurrent Neural Network(RNN) for predicting the captions for the image provided by the user through the Web App designed using Flask

Structure:

Structure of Prediction Model

Dataset Used:-

Flickr8k Image Dataset (https://drive.google.com/drive/u/3/folders/1VNtUKzFWg0TFB5W3FkBOHlzX4qmmR2HA) Flickr8k Text Dataset (https://drive.google.com/drive/u/3/folders/1RGq8vhCVxH5TKeA7IaACjy0IXDZz8jTf)

Construction Process:

  1. We prepared a feature map of 1500 images (out of 8k){because of hardware limitation} using the ResNet50 model of Tensorflow and saved it in a feature.pickle file.
  2. Flickr8k text dataset contains 5 captions for every 8092(8k) images in it. We have prepared a dictionary of all the captions with image as key and caption as value.
  3. Once every image feature is attached with the corresponding keyword from the caption, we trained or LSTM model to predict the caption.

How to install and use:

  1. Clone the repo and open in Editor and change the paths
  2. Run the predict.py file
  3. Run flaskk.py file
  4. A web app will start at localhost
  5. Go to upload page and provide the image whose caption you want. Done, the model will provide you with the predicted caption.

Versions:

1.Numpy 1.18.5 2.Pandas - 1.1.4 3.Tensorflow - 2.3.1 4.Keras - 2.4.3 5.Python - 3.7.6

Screenshots:

Race car driving on wet road with lights ON Boy running barefoot in a parking lot Women waering straw hat women kissing man in a subway two dogs running across grassy area three young boys making faces a boy in red jacket does a handstand a young girl painting a picture

For more:

About any issue or construction of model or anything. Mail Mayank Singh([email protected])

imagecaptiongenerator's People

Stargazers

 avatar

Watchers

 avatar

Forkers

93yh

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.