Giter Site home page Giter Site logo

saifrahmed / neural_image_captioning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oarriaga/neural_image_captioning

0.0 2.0 0.0 24.18 MB

Neural image captioning (NIC) implementation with Keras 2.

License: MIT License

Jupyter Notebook 99.66% Python 0.34%

neural_image_captioning's Introduction

Neural Image Captioning (NIC)

Neural image captioning implementation with Keras based on Show and Tell.

alt tag

Instructions

To train from zero using the iapr2012 dataset:

  • Download IAPR2012 dataset from here
  • Move the downloaded file to the datasets/IAPR_2012/ directory
  • Untar the file:

tar xvf iaprtc12.tgz

Extract/download image features

To extract:

  • Edit the file train.py by changing the flag extract_image_features to True.

To download:

  • Download the image features:

  • Download the extracted image features from here

  • Move them do datasets/IAPR_2012/preprocessed_data/ directory

  • Start training by running the script

python3 train.py

Notes

  • Extracting the image features might take 1-2 hours in a GTX860M.
  • Training 50 epochs should give you reasonable results.
  • I will provide pre-trained models in COCO soon (hopefully)

neural_image_captioning's People

Contributors

oarriaga avatar

Watchers

James Cloos avatar  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.