How marshal-gg/advanced-image-captioning-system works
This repository is an image-captioning application: a user uploads an image, the app extracts visual features, and a trained sequence model generates a text caption. The README also documents a Flickr8k-based notebook workflow for preprocessing, training, and evaluation. The notebook is present but was not sampled, so its internal stages and artifact-writing relationships are not verified; those links are shown as unverified where appropriate.
Main entry points: main.ipynb Preprocessing, training, evaluation · app.py Caption generation · trained_model.keras Trained decoder · wordtoix.pkl Word mappings
Components 13
Captioning app
- Gradio interface
app.py - Caption generation
app.py - Feature extraction
app.py - InceptionV3 encoder
app.py
Caption model
- Trained decoder
data/processed/trained_model.keras - Word mappings
data/wordtoix.pkl - Reverse word mapping
data/vocab.pkl - Train features
data/processed/train_encoded_features.npy - Test features
data/processed/test_encoded_features.npy
Training workflow
- Flickr8k dataset
- Preprocessing, training, evaluation
main.ipynb
Other components
- Image uploader
- ImageNet weights
Connections 14
- Image uploader → Gradio interface: uploads image
app.py - Gradio interface → Caption generation: calls
app.py - Caption generation → Feature extraction: extracts features
app.py - Feature extraction → InceptionV3 encoder: predicts features
app.py - InceptionV3 encoder → ImageNet weights: loads weights
app.py - Caption generation → Trained decoder: predicts words
app.py - Caption generation → Word mappings: maps input words
app.py - Caption generation → Reverse word mapping: looks up predicted word
app.py - Preprocessing, training, evaluation → Flickr8k dataset: uses dataset
README.md - Preprocessing, training, evaluation → Train features: prepares features
- Preprocessing, training, evaluation → Test features: prepares features
- Preprocessing, training, evaluation → Trained decoder: trains model
README.md - Preprocessing, training, evaluation → Word mappings: creates mapping
- Preprocessing, training, evaluation → Reverse word mapping: creates mapping