Artwork segmentation for Design I/O's ArtLens

Most image segmentation models are trained on photos. Point them at a painting and they struggle.

That was the problem Design I/O brought me. They were developing the interactives for the ArtLens Reimagined gallery at the Cleveland Museum of Art and needed a tool that could find the objects in each artwork, cut them out and name them: “fruit”, “knife”, “glass”. Off-the-shelf models kept missing objects, merging them, or producing messy masks. So they asked me to research the options and build something that actually worked on artworks.

Objects found, cut out and named in a still life

The challenge was the wide range of styles in the museum’s collection and its massive number of artworks.

Finding what works

I tested SAM, SAM 2, YOLO, OneFormer, Grounding SAM, DINO-X and a few others against their sample artworks. Several models worked great for specific styles but failed for the rest.

Comparison of the different models on the same painting, with the chosen approach highlighted in yellow

In the end, the approach that worked best has two steps: a vision-language model (Qwen) looks at the artwork and lists what’s in it, and then SAM 3 segments each of those things. Nobody has to write prompts, which matters with a collection this large that keeps growing.

What surprised me most: on paintings, letting a language model decide what to look for, and the segmentation model decide where, beat every prompt-free approach I tried.

The tool

The final tool, with the original artwork, its masks and the adjustable parameters

Everything runs locally on Linux, with no cloud APIs, because the installation has to keep running for years. The tool takes one image or a whole folder and writes masks, contours and labels to JSON, ready for Design I/O’s openFrameworks pipeline, while allowing a few relevant parameters to be adjusted.

Working together

Roy was really easy to work with. He understood the challenge we were trying to solve and went through a fast iteration process exploring different tool combinations until he landed on one that worked well with all the different artwork samples we had. We really appreciated how he kept us posted on his progress sharing useful visualizations of the different approaches and explaining what we could do to improve the results.

Theo Watson, Design I/O’s Co-Founder / Creative Director

Design I/O’s ArtLens project page

Installation usage images provided by Design I/O.