Visualization Tools
Glue Factory includes an interactive visualization tool to inspect model predictions and evaluation results.
Interactive Inspector
To launch the inspector:
python -m gluefactory.eval.inspect <benchmark> <experiment_tag1> <experiment_tag2> ...
Example: Compare LightGlue vs. SuperGlue on HPatches:
python -m gluefactory.eval.inspect hpatches superpoint+lightglue-official superpoint+superglue-official
Controls
- Click dots in scatter plot: View detailed visualization for that specific image pair.
- Left/Right Arrow keys: Navigate through image pairs.
tkey: Toggle summary text.x/ykeys: Change the metrics plotted on axes.
Plotting from Training
During training, visualizations can be generated periodically. Configure this in the train section of your config:
train:
plot: [5, 'gluefactory.visualization.visualize_batch.make_match_figures']
This will generate figures for 5 random batch items at the start of validation.