Caption images
These models generate text descriptions and captions from images. They use large multimodal transformers trained on image-text pairs to understand visual concepts.
Key capabilities:
- Image captioning: Produce relevant captions summarizing image contents and context. Useful for indexing images and accessibility. Automate alt text for images.
- Visual question answering: Generate natural language answers to questions about images. Ask questions about your images.
- Text prompt generation: Create prompts matching image style and content. Use images to guide text-to-image generation.
Our Pick: LLaVa 13B
For most people, we recommend the LLaVa 13B model. It provides the best balance of intelligence, detail, and cost-effectiveness. LLaVa can generate full paragraphs describing an image in depth. It also excels at answering questions about images insightfully.
In particular, LLaVa outperforms models like img2prompt and CLIP Interrogator for generating detailed text-to-image prompts from a source image. Querying LLaVa with a prompt like “Describe the image, including content, medium, creator, styles, and other keywords” produces great prompts around 4 times faster and 100 times cheaper than img2prompt.
Budget Pick: BLIP
If you need to generate a large volume of image captions or answers and don’t require maximum detail or intelligence, BLIP is a great choice. It performs nearly as well as the more advanced but slower BLIP-2, which makes it significantly cheaper per request
However, BLIP is less capable than LLaVa at generating long-form text or exhibiting deeper visual understanding. Stick with our top pick if you need those advanced capabilities.
Recommended models
salesforce / blip
Generate image captions
andreasjansson / blip-2
Answers questions about images
yorickvp / llava-13b
Visual instruction tuning towards large language and vision models with GPT-4 level capabilities
methexis-inc / img2prompt
Get an approximate text prompt, with style, matching an image. (Optimized for stable-diffusion (clip ViT-L/14))
pharmapsychotic / clip-interrogator
The CLIP Interrogator is a prompt engineering tool that combines OpenAI's CLIP and Salesforce's BLIP to optimize text prompts to match a given image. Use the resulting prompts with text-to-image models like Stable Diffusion to create cool art!
rmokady / clip_prefix_caption
Simple image captioning model using CLIP and GPT-2
daanelson / minigpt-4
A model which generates text in response to an input image and prompt.
j-min / clip-caption-reward
Fine-grained Image Captioning with CLIP Reward
nohamoamary / image-captioning-with-visual-attention
datasets: Flickr8k
zsxkib / uform-gen
🖼️ Super fast 1.5B Image Captioning/VQA Multimodal LLM (Image-to-Text) 🖋️
zsxkib / molmo-7b
allenai/Molmo-7B-D-0924, Answers questions and caption about images