demo.py, connects the supported COCO and Visual Genome dataset paths with model wrappers and evaluation metrics. Its prediction cache lets you score saved model outputs again without repeating inference. Each metric keeps its own protocol and assumptions, so results should be interpreted within the metric being used.
Get started
Install Mirage and run the one-image smoke test.
Datasets
Prepare COCO and Visual Genome inputs.
Run evaluations
Choose a dataset, model, metric, and output path.
Metrics and models
Review available model wrappers and scoring protocols.
Run on an HPC cluster
Prepare a GPU job and submit it with SLURM.
Maintain the docs
Preview changes and see what the automated checks cover.
Evaluation data flow
Mirage turns dataset examples into model responses, scores those responses, and writes a result file. The prediction cache avoids repeating model inference when the same inputs are evaluated again.1
Load COCO or Visual Genome examples
The dataset loader reads the image files and annotations, then provides each image with its ground-truth objects and any metric-specific data.
2
Get a model response
The predictor checks the response cache using the model and request inputs. On a cache hit, Mirage reuses the saved response. On a miss, the selected model wrapper runs inference and the predictor saves its response in the cache.
3
Score responses with a metric
The selected metric compares model responses with the ground truth and applies its own evaluation protocol. You can run a different metric against cached responses without running the model again.
4
Write the evaluation result
The demo writes the scores and run details to the requested JSON output path.
Reference model results
These reference results compare three model configurations across COCO and Visual Genome. Values are percentages from 1,000 images per model and dataset. Higher is better for POPE accuracy, ROPE strict accuracy, and THRONE F1. Lower is better for CHAIR-I hallucination rate. The tables use Mintlify’s native tabs and tables so the values remain readable on every screen size.- COCO
- Visual Genome