experiments.swm.cc
indexatron

Image Analysis with LLaVA

View PR
pythonollamallava

LLaVA-powered photo analysis with structured output.

Changes

  • PhotoAnalyzer class using llava:7b
  • Pydantic models for structured analysis
  • Single image analysis script
  • Test images from Rails gallery

Results

LLaVA successfully analyses photos and extracts:

  • Description
  • Location
  • People count
  • Categories
  • Era estimation
  • Mood

Sample output:

“A tan-colored Labrador Retriever sitting on wooden floor indoors” Categories: [“dog”], Mood: calm

JSON output with robust parsing handles LLM quirks nicely.