A complete deep learning project that explores the evolution of image captioning models—from a simple CNN + LSTM baseline to modern attention-based and transformer-based architectures.
The goal of this repository is not only to build an image captioning system but also to document the complete learning journey by implementing increasingly advanced models.
| Version | Model | Status |
|---|---|---|
| ✅ V1 | CNN + LSTM Baseline | Completed |
| 🚧 V2 | CNN + Bahdanau Attention + LSTM | In Progress |
| ⏳ V3 | Transformer Decoder | Planned |
| ⏳ V4 | Vision Transformer (ViT) + Transformer | Planned |
| ⏳ V5 | BLIP / Pretrained Vision-Language Model | Planned |
| ⏳ V6 | Video Captioning | Planned |
| ⏳ V7 | Real-Time Captioning | Planned |
Image-Captioning/
│
├── V1_Baseline_CNN_LSTM/
│ ├── app/
│ ├── models/
│ ├── plots/
│ ├── src/
│ ├── README.md
│ └── requirements.txt
│
├── V2_Attention/
│ ├── model/
│ ├── src/
│ └── README.md
│
└── README.md
Image
│
InceptionV3
│
Image Feature Vector
│
LSTM Decoder
│
Caption
- Pretrained InceptionV3 Encoder
- LSTM Decoder
- Teacher Forcing
- Vocabulary Building
- Caption Generation
- BLEU Score Evaluation
- Training History Visualization
Image
│
CNN
│
Feature Maps
│
Encoder
│
Bahdanau Attention
│
LSTM Decoder
│
Caption
- Spatial image features
- Bahdanau Attention
- Better alignment between image regions and generated words
- Improved caption quality
- Attention visualization (planned)
- Python
- TensorFlow / Keras
- NumPy
- Matplotlib
- InceptionV3
- LSTM
- Bahdanau Attention
- BLEU Evaluation
Flickr8k Dataset
- Images
- Multiple captions per image
- Used for training and evaluation
- Beam Search Decoding
- Scheduled Sampling
- Transformer Decoder
- Vision Transformer (ViT)
- BLIP
- CLIP Integration
- Video Captioning
- Real-Time Captioning
- Web Application
- API Deployment
This repository demonstrates:
- Deep Learning
- Sequence Models
- Attention Mechanisms
- Transformer Architectures
- Model Evaluation
- Transfer Learning
- End-to-End AI Project Development
Image
│
CNN Feature Extraction
│
Encoder
│
Attention
│
Decoder
│
Generated Caption
- ✅ Baseline CNN + LSTM completed
- 🚧 Attention mechanism under development
- ⏳ Transformer implementation planned
- ⏳ Vision-language models planned
Atul Kumar
B.Tech – Artificial Intelligence & Data Science
IIITDM Kurnool
- GitHub: https://github.com/atulkumar-ds
- LinkedIn: linkedin.com/in/atul-kumar-iiitdm/