Giter VIP home page Giter VIP logo

showandtell's Introduction

Show&Tell

English | 简体中文

Mindspore Implementation of "Show and Tell : Neural Image Caption Generation"

Pre-requisites

  • Mindspore=2.0.0
  • Convolutional Neural Networks
  • Long Short Term Memory Cells

Usage

Clone the repo:

git clone https://openi.pcl.ac.cn/Kayxxx/ShowAndTell.git

1. Flickr8k Dataset

  • Prepare Dataset (Flickr8k).
  • Extract and move images to a folder named Images and text to captions.txt.
  • Put the folder containing Images and captions.txt in a folder named flickr8k
-- flickr8k
    |-- Images
      |-- 1000268201_693b08cb0e.jpg
      |-- ......
    |-- captions.txt

2. Training

  • Run the following command :
python train.py

3. Inference

  • Run the following command :
python inference.py --image_path <path_to_image> --model_path <path_to_model>

assets

4. Results

Some of the results obtained are shown below :

 Caption : a man is standing on top of a  mountain gazing at the sunset . 

Bad Case:

 Caption : a young boy is holding a yellow ball. 

References

showandtell's People

Contributors

nicholaskx avatar

Stargazers

 avatar  avatar

Watchers

 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.