GithubHelp home page GithubHelp logo

image-captioning's Introduction

Image-Captioning

My tensorflow implement of Show Attend & Tell paper: https://arxiv.org/abs/1502.03044

Data

Loading flickr8k datasets from https://academictorrents.com/details/9dea07ba660a722ae1008c4c8afdd303b6f6e53b into folder : /content/drive/My Drive/datasets/

Structure:
├─ data.py                               % data_loader 
├─ models.py                             % all structure model in here 
├─ preprocessing.py                      % preprocessing for npy file
├─ train.py                              % train file
└─ utils.py                              % additional function
├─ captions.py                           % test file, design to app
├─ app.py                                % demo file, run by flask
├─ static                                %  
├─ templates                             % web front end
└─ content/drive/My Drive/datasets       % store data, result, checkpoint in here   
    └─Flickr8k
        └─ Flickr8k_Dataset
            └─ FLicker8k_Dataset
            └─ FLicker8k_nunpy
            └─ FLicker8k_stats
        ...
    └─ modelcheckpoint
        └─ train
                    

Preprocessing

Run command to save image npy and embedding matrix

python preprocessing.py

Training

Train by yourself

python train.py

Demo

I made demo by flask, so you can try to use

python app.py

Here some good results.

(1) A little boy with a bib on is watching the camera

alt text

(2) Two men in karate uniforms kicking each other

alt text

(3) A group of men are standing on a concrete

alt text

(4) A man standing in front of a mountain

alt text

Report

Report

References

This code inspired by : . https://www.tensorflow.org/tutorials/text/image_captioning . https://github.com/krishnaik06/Deployment-Deep-Learning-Model . https://machinelearningmastery.com/develop-a-deep-learning-caption-generation-model-in-python/

image-captioning's People

Contributors

khangt1k25 avatar

Watchers

 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.