GithubHelp home page GithubHelp logo

encoder-decoder-image-captioning's Introduction

Image Captioning With Encoder-Decoder Architecture

Project for the course Deep Learning 046211 (Technion) Winter 2022-2023.

Video:

YouTube - https://youtu.be/HsJHZepSWHU (in hebrew).

Background

Image captioning is the task of generating short sentences that describe the content of an image. The goal of this project is to implement an encoder-decoder network for image captioning. The encoder is a pre-trained CNN, and for the decoder we used both LSTM and Transformer networks. The network is trained on the Flickr8k dataset.

Prerequisites

Full lists of requirements are in the requirements.txt file. Require python version is 3.10.9. To install the requirements run: pip install -r requirements.txt

Files in the repository

File name Purpsoe
'data.py' Data loader and additional scripts for the flickr8k datasets.
'models.py' All the models used in the project (Transformer, LSTM, resnet50k).
'train.py' Training script.
Example_Images Folder with example images for the README.md file.
'LSTM_optuna.py' Optuna hyperparameter tuning script for the LSTM model.
'Transformer_optuna.py' Optuna hyperparameter tuning script for the Transformer model.
'Transformer_full.csv' Results for the Transformer model during final training.

Results

The full results for the Transformer model training are in the 'Transformer_full.csv' file. In order to replicate the results run train.py without changing the hyperparameters, seed or model class.

Training

In order to train the model one should clone the repository, select the model class (Transformer / LSTM) and select the required hyperparameters in the script (the optimal hyperparameters we used are already in the script).

Examples

Example 1

Example 5

Example 7

Example 8

References:

encoder-decoder-image-captioning's People

Contributors

itaishufaro avatar nirluria1234 avatar

Stargazers

Johon Li Tuobang 李拓邦 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.