How harmandugri15/visionnarrator works
VisionNarrator is an image-captioning and story-generation project: it prepares Flickr30k data, uses a ViT/GPT-2 captioning model, then offers semantic analysis and grounded story generation. The README documents the data, model, training, and evaluation workflow; the source excerpts show the dataset readers and the semantic/story components. Notebook-backed stages are represented using their exact paths, but their internal calls are not inferred where source was not sampled.
Components 19
Data preparation
- Flickr30k data
- Dataset preparation
notebooks/02_data_preprocessing.ipynb - Image datasets
src/vision_data.py
Captioning model
- ViT encoder
notebooks/03_vit_from_scratch.ipynb - Model training
notebooks/04_vit_training.ipynb - Transfer learning
notebooks/05_transfer_learning_vit.ipynb - GPT-2 decoder
notebooks/06_gpt2_decoder.ipynb - Captioner weights
src/models/vit_captioner.pt - Caption evaluation
notebooks/07_model_evaluation.ipynb - Image caption
notebooks/10_final_application.ipynb
Semantic analysis
- Semantic extraction
src/semantics.py - Semantic workflow
notebooks/08_semantic_understanding.ipynb - Scene representation
src/semantics.py
Story generation
- Story generator
src/storytelling.py - Story grounding
src/storytelling.py - Story workflow
notebooks/09_story_generation.ipynb - Generated story
notebooks/10_final_application.ipynb
Other components
- Image user
- Instruction-tuned LLM
Connections 20
- Flickr30k data → Dataset preparation: prepares splits
README.md - Dataset preparation → Image datasets: provides image data
README.md - Image user → Image caption: requests description
- Image datasets → ViT encoder: supplies images
- ViT encoder → Model training: trains encoder
README.md - Model training → Transfer learning: supports transfer
README.md - Transfer learning → GPT-2 decoder: uses decoder
README.md - Model training → Captioner weights: saves weights
- Captioner weights → Image caption: supports inference
- GPT-2 decoder → Image caption: generates caption
- Image caption → Caption evaluation: evaluates captions
README.md - Image caption → Semantic extraction: analyzes caption
- Semantic workflow → Scene representation: extracts scene
src/semantics.py - Semantic extraction → Scene representation: builds representation
src/semantics.py - Scene representation → Story generator: provides story context
src/storytelling.py - Story generator → Instruction-tuned LLM: loads and queries
src/storytelling.py - Story generator → Story grounding: checks story
src/storytelling.py - Story grounding → Story generator: requests repair
src/storytelling.py - Story workflow → Generated story: produces stories
- Story grounding → Generated story: grounds output