Skip to content

A PyTorch-based image captioning generator leveraging a pretrained Hugging Face Transformer model. This project showcases skills in NLP techniques and frameworks..

Notifications You must be signed in to change notification settings

KrishBende/ImageCaptionGeneration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image Captioning Generator

This project uses a pre-trained model from the Hugging Face transformers library to generate descriptive captions for images.

Setup

  1. Create and activate the virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  2. Install the dependencies:

    pip install -r requirements.txt

Usage

To generate a caption for an image, run the predict.py script with the path to your image. Sample images are provided in the data directory.

For example:

python predict.py data/demo.png

About

A PyTorch-based image captioning generator leveraging a pretrained Hugging Face Transformer model. This project showcases skills in NLP techniques and frameworks..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages