Caption, object box or pixel mask: what do you need from the photo?
Use a caption for a sentence, a bounding box for an object’s location, or a pixel mask for its visible shape. Follow one fictional photo through Florence-2 and SAM 2.1 to see what each output can and can’t tell you.
Start with the result you’ll use
Imagine a display photo with a yellow mug next to a blue saucer. For a catalog note, a sentence such as “A yellow mug sits next to a blue saucer” may be enough. To mark the mug’s location, use a bounding box, a rectangle with corner coordinates. To keep the mug but exclude its surroundings, you need a mask, which marks individual pixels as selected or not. A rectangle includes the background inside it. It can’t tell you which pixels belong to the space inside the mug’s handle.
Use Florence-2 to describe or locate what’s visible
Microsoft’s Florence-2-base-ft documents <CAPTION> for a description and <OD> for object labels with boxes. If you already have a description and want to locate its phrases in the photo, <CAPTION_TO_PHRASE_GROUNDING> takes the image plus caption text and returns labels and boxes. A caption doesn’t give coordinates, and a label with a box doesn’t prove the model found every object. Check that the mug label points to the mug rather than the saucer, and ignore any detail you can’t see in the photo.
Use a point or box with SAM 2.1 when the edge matters
Meta’s sam2.1-hiera-small is a segmentation checkpoint. In its prompted-image workflow, mark a point on the mug or provide a box that surrounds it. A positive point cues what to include; a negative point can indicate a region to leave out. Here, the result to inspect is a pixel mask, not a caption or a category label. A point can be ambiguous: the model can return multiple candidate masks. Overlay the selection on the original and check that the handle is included, the visible gap inside it is excluded, and the neighboring saucer wasn’t selected.
If you already know where to click, skip object detection
A person can select the mug directly. If Florence-2 locates it first, use the checked box as a cue for SAM only when the coordinates refer to the same image and pixel scale. A raw coordinate string is not a parsed box; a box for a crop doesn’t line up on the full photo. Keep both stages on the same crop, dimensions and orientation, or map the coordinates back before using them. Florence-2 also has documented segmentation tasks: the distinction here is between the chosen box-producing task and the separate point-or-box mask workflow, not that only SAM 2.1 can produce a mask. Check the coordinate order and units used by the receiving app. The native Transformers documentation illustrates a community-converted checkpoint, not the exact Microsoft Base FT download.