GithubHelp home page GithubHelp logo

tqxg2018 / image-caption-pytorch Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 7.0 99 KB

This is an implementation of image caption, based on two different papers. The two papers are: 1. Show and Tell: A Neural Image Caption Generator 2. Show, Attend and Tell: Neural Image Caption Generation with Visual Attention

Python 99.44% Shell 0.56%

image-caption-pytorch's Introduction

Image Caption Pytorch

Pytorch implementation of image caption problem.

Introduction

This is an implementation of image caption, based on two different papers. The two papers are:

  1. Show and Tell: A Neural Image Caption Generator
  2. Show, Attend and Tell: Neural Image Caption Generation with Visual Attention

The code is based on a-PyTorch-Tutorial-to-Image-Captioning.

Model Training and Testing

In order to run the code, a file called "dataset_coco.json" need to be download and put into the data folder. You can download the file here.

Training

  1. run pip install -r requirement.txt
  2. run chmod +x download.sh
  3. run ./download.sh
  4. run python create_input_files.py
  5. run python train-traditional.py
    This is for the paper "Show and Tell: A Neural Image Caption Generator"
  6. run python train-attention.py
    This is for the paper "Show, Attend and Tell: Neural Image Caption Generation with Visual Attention"

Testing

The testing code is tested under pycharm environment.

  1. run caption-traditional.py
  2. run caption-attention.py

Pretrained model

You can download the pretrained model here

  1. The traiditional model, the password is yl2u.
  2. The attentaion model, the password is lsv7.

image-caption-pytorch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

image-caption-pytorch's Issues

Models

Could you make the models available on the Google drive?

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.