GenAI · 2024 · Completed

VisionCaption: Multimodal Vision-Language Generation Platform

End-to-end deep learning pipeline combining vision encoders and autoregressive language decoders for high-fidelity image narration.

Overview

A full-stack multimodal generative AI system combining vision transformer encoders with sequence-to-sequence language decoders. Capable of analyzing complex image scenes, identifying contextual entity relationships, and generating articulate natural language captions.

Problem

Automating visual content indexing and accessibility narration requires models that understand subtle relationships between foreground objects and spatial backgrounds rather than simple object tag labeling.

Solution

Implemented an encoder-decoder neural pipeline utilizing pre-trained visual transformers coupled with attention-augmented language decoders. Deployed as an optimized microservice with a responsive interactive testing space on Hugging Face.

Architecture

  1. Image Upload
  2. Preprocessing & Tensor Normalization
  3. Vision Transformer Encoder
  4. Cross-Attention Decoder
  5. Autoregressive Beam Search
  6. Natural Language Caption
  7. FastAPI API
  8. Hugging Face Space / Web UI

Results

  • Deployed functional public inference space on Hugging Face Spaces
  • Generated grammatically rich, context-aware descriptions across open-domain visual scenes

Challenges

  • Optimizing model memory footprint to fit within serverless GPU and CPU memory constraints
  • Preventing repetitive caption loops during autoregressive sequence generation

Lessons learned

  • Beam search width tuning and repetition penalties significantly improve descriptive nuance over greedy decoding
  • Decoupling model inference into a dedicated lightweight API accelerates web interface iteration