Free Chrome extension — on-device cutouts

What an on-device cutout model sees

An on-device cutout model does not see a person, shoe, pet, or chair in the human sense. It receives a numerical representation of the image and estimates, pixel by pixel, which areas are likely to belong to the main subject. Its useful output is a mask: a grayscale map that can become the transparency channel of the result.

That distinction explains both the speed of automatic cutouts and their limits. The model can use visual patterns learned during training, but it does not know your intention. A sharp object near the center may look important; a faint glass rim or loose strand of hair may look like background.

From image file to model input

The file you choose first has to be decoded. A compressed photo is not passed directly into the model as a block of file bytes. The browser turns it into pixels with width, height, and color values.

The inference pipeline then prepares a model-sized input. Depending on the model and runtime, preparation can include:

The exact dimensions and normalization rules belong to the model implementation. The important practical point is that inference usually works from a prepared representation, not from every source pixel at its original size.

Easy Background Remover runs this inference step in the browser with an on-device segmentation model. The model file may need to be downloaded before the first cutout, but the image-processing path is designed to remain local once the model is ready. The model download is an asset request; it is not the same thing as uploading the selected photo for remote inference.

The output is a confidence-like mask

For each location in its output, the model produces a value that can be interpreted as more subject-like or more background-like. It is useful to picture this as a grayscale image:

The browser converts that output into the working alpha mask. The original color pixels can then be composited over a checkerboard, a solid fill, a gradient, or another image. A transparent export stores the mask as alpha rather than painting the checkerboard into the file.

The soft values matter. If every mask value were forced immediately to pure black or white, hair, fur, fabric fibers, motion blur, and defocused edges would become unnaturally hard. Partial alpha can preserve a smoother transition. It can also expose color fringe from the old background, which is why the result still deserves a visual check.

What visual evidence helps the model

A segmentation model can draw on more than one clue at once. Strong clues often include:

None of these clues is a guarantee. A dark jacket against a dark wall offers weak boundary contrast. A chair with narrow gaps may contain background regions that resemble the object. A patterned backdrop can compete with the actual subject for attention.

The model is making a best estimate from the available pixels. It cannot recover detail that the image never captured.

What the model does not know

The model does not automatically know which object you meant to keep when several subjects are present. It does not know that a transparent drinking glass is commercially important, that a shadow should stay for realism, or that a small strap belongs to a bag.

It also does not receive a hidden high-resolution version of a blurry source. Compression blocks, clipped highlights, motion blur, and very small details limit the evidence available. Increasing the preview zoom makes pixels larger on screen; it does not create missing information.

This is why “AI detected it” and “the edge is ready to publish” are different claims. Detection starts the edit. Review finishes it.

Why thin and transparent details are difficult

Thin objects occupy few pixels. When an image is resized for inference, a one-pixel wire or hair strand may be averaged with the background around it. Transparent objects are difficult for another reason: their visible color is partly the old background. The boundary may be clear to a person who understands the object, while the pixel pattern remains ambiguous.

Soft shadows create an intentional ambiguity. Their outer edge fades gradually, and there is no single objectively correct cutoff. Keeping the full shadow may look natural on a similar background but dirty on a bright new fill. Removing it may make the subject appear to float.

These are judgment problems as much as model problems.

Model mask, working mask, and export mask

It helps to separate three stages:

  1. Model mask: the automatic estimate returned by inference.
  2. Working mask: the mask shown in the editor after any Add or Erase refinement.
  3. Export mask: the working mask applied when the current result is downloaded or copied.

In Easy Background Remover, brush refinement edits the working mask. Export uses the current edited result rather than silently returning to the untouched automatic mask. This lets the model handle the broad separation while you correct details that depend on intent.

The displayed preview may be scaled to fit the editor. That display size is not a reliable measure of the mask’s internal detail. Read Mask resolution vs preview size for the distinction.

Local inference still has a setup step

Running a model on-device requires the model weights and a compatible browser runtime. The weights are much larger than ordinary interface code, so loading everything on every editor launch would be wasteful. A first session may download and cache the model; later ordinary sessions can usually reuse it.

Why first run downloads a model explains that boundary without confusing a model asset download with a photo upload. Heavy inference also runs away from the main interface thread; see Web Worker image processing basics.

A practical way to judge the result

Do not inspect only the center of the subject. Check the mask where evidence is weakest:

View the result over both a light and dark background if the final destination is unknown. A pale halo can disappear on white and become obvious on black. Then refine only the areas that affect the intended use.

Automatic segmentation is most useful when treated as a strong first pass, not a statement of perfect understanding. To try the full local cutout and refinement flow, see Get started.

Keep exploring

Interesting