AI-Toolkit dev builds grounded captioner linking caption words to bounding boxes for attention-masked training

ostrisai · x · 2026-12-07

ostris (AI-Toolkit) spent the morning building a captioner that grounds words in an existing/new caption with bounding boxes in the image.

A screenshot of the Auto Captioning UI shows a detailed caption of a mirror selfie with boxes drawn for words like woman, black camera, white countertop, and integrated sink, plus generated masks and coordinates per word.

Next step: during training, use attention masking to map text tokens to the corresponding patches in the image transformer—still a work in progress.

Original post →

More from Research

Research channel →