Loading repository data…
Loading repository data…
Ayush24052003 / repository
LLM-enhanced Image Caption Generator that combines computer vision and large language models to generate accurate, context-aware captions for images. Includes a Jupyter Notebook for training, an app.py for deployment, and a requirements.txt for easy setup.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This repository contains code for an image caption generation system using deep learning techniques. The system leverages a pretrained VGG16 model for feature extraction and a custom captioning model which was trained using LSTM for generating captions. The model is trained on the Flickr8k dataset using an attention mechanism to improve caption quality.
In addition to the base captioning model, the project integrates a Large Language Model (LLM) via the Together API (Mistral-7B-Instruct) to refine the generated captions, making them more natural, elegant, and human-like. This two-step approach improves the fluency and readability of captions.
The Flickr8k dataset is used for training and evaluating the image captioning system. It consists of 8,091 images, each with five captions describing the content of the image. The dataset provides a diverse set of images with multiple captions per image, making it suitable for training caption generation models.
Download the dataset from Kaggle and organize the files as follows:
This project is written in Python 3.10.12. If you don't have Python installed, you can download it from the . If you have an older version of Python, you can upgrade it using the pip package manager, which should be already installed if you have Python 2 >=2.7.9 or Python 3 >=3.4 on your system. To install the required packages and libraries, you can use pip and the provided requirements.txt file.
| app.py
| image-captioner.ipynb
| LICENSE.md
| mymodel.h5
| README.md
| requirements.txt
| tokenizer.pkl