AI 101

Finding a frame with CLIP embeddings

From

How can a line of text help find an image in an unlabelled archive?

A model such as CLIP learns representations of images and captions that can be compared in a shared space. You can encode a search phrase and rank the images in your archive by similarity, then inspect the returned frames yourself.

A cyclist passes a green shop and striped awning beside a sunlit cream wall.
The shadowed shop occupies the left edge while the blank wall fills the right.Illustrated with Seedream 5.5 · Jude Norvell Studio
Concept study
Awning on the left
Awning on the right

Search for an object, then a feeling

Try two descriptions on a folder of street photographs. “A red awning over a shop” names a visible subject. “Shelter from the afternoon heat” leaves more room for association. Keep the top five results from each search. A picture that ranks highly for both may carry the story without needing a literal caption.

Notice what the ranking missed

Say the brief calls for a striped awning on the left, with type set on the right. Search may surface several striped objects while missing the empty space your layout needs. Review the shortlist as thumbnails with the proposed type laid over them. Save the successful composition as a labelled reference for the next search.

Studio exercise

Write three competing captions for one frame in your own archive. Retrieve the nearest frames for each and mark where people, objects and mood change position in the ranking.

Sources