Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.83 KB

File metadata and controls

59 lines (38 loc) · 1.83 KB

Image Captioning Plugin

image_captioning

Plugin Overview

This plugin lets you generate and store captions for your samples using state-of-the-art image captioning models.

Supported Models

This version of the plugin supports the following models:

Feel free to fork this plugin and add support for other models!

Installation

Pre-requisites

  1. If you plan to use it, install the Hugging Face transformers library:
pip install transformers
  1. If you plan to use it, install the Replicate library:
pip install replicate

And add your Replicate API key to your environment:

export REPLICATE_API_TOKEN=<your-api-token>

Install the plugin

fiftyone plugins download https://github.com/jacobmarks/fiftyone-image-captioning-plugin

Operators

caption_images

  • Applies the selected image captioning model to the desired target view, and stores the resulting captions in the specified field on the samples.