Code Monkey home page Code Monkey logo

image-captioning-torch's Introduction

FlickR-8 Image Captioning using PyTorch

This repository contains a simple Image Captioning model using a SENet Encoder and a Transformer Decoder.

The model was trained on the training and test set of the original FlickR-8 dataset (7000). Validation set was used for hyperparameter tuning (1000).

The test set is a custom set of manually annotated images by me. (175)

No lemmatization was used, only stopword removal and some basic cleaning. (wanted to create captions that are close to sentences)

Open In Colab

Results on the validation set:

BLEU - 1 BLEU - 2 BLEU - 3 BLEU - 4
48.57 30.66 18.68 10.73

Results on the test set:

BLEU - 1 BLEU - 2 BLEU - 3 BLEU - 4
27.75 8.43 1.98 0.04

Some examples:

Predicted Caption:
man in red is skiing in the snow

Actual Caption:
man skiing down snowy mountain slope
person in red pants snowboarding
skier moving fast on powder snow
snowcovered slope with downhill skier
man wearing helmet skiing in snow
Predicted Caption:
person is skiing down snowy hill

Actual Caption:
person snowboarding down snowy hill
snowboarder sliding on snow creating spray
man wearing dark outfit snowboarding
snowboarder making turn on snowy slope
action shot of snowboarder on mountain
Predicted Caption:
man is climbing on rock

Actual Caption:
three people climbing rocky mountain side
climbers wearing helmets scaling steep cliff
group hiking up rocky terrain together
persons attached to ropes climb grey rock
team wearing blue yellow and grey climb outdoors

image-captioning-torch's People

Contributors

getlar 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.