RITM turns clicks into masks in the Smart Tool

RITM turns positive and negative clicks into a mask and keeps refining it with every click. In Supervisely it is one of the models behind the Smart Tool, and its training app lets the Smart Tool learn the objects of your domain.

RITM correcting inaccurate masks of a cat and a car with corrective clicks
Labels
  • Bitmap masks from positive and negative clicks
Apps
Serve, Fine-tune

Apps in the Supervisely Ecosystem

Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.

Iterative clicks with mask guidance

RITM comes from "Reviving Iterative Training with Mask Guidance for Interactive Segmentation". An interactive segmentation model differs from an ordinary segmenter: rather than one pass from image to mask, it takes input from a person over several rounds. Each click adds evidence, the previous mask is fed back in, and the model corrects only what the click pointed at. RITM models are class-agnostic, so they segment objects from any domain.

The same clicks fix masks the model did not make. A mask predicted by a detector or a semantic segmentation model can be cleaned up with green clicks for missed areas and red clicks for wrong ones.

Using it in the labeling tool

The RITM Smart Tool may already be running: on Community the Supervisely team starts it, on Enterprise an administrator. If it is missing from the model list of the labeling tool, ask them, or add the app from the Ecosystem and start it from the Plugins & Apps page. It runs on a GPU, or more slowly on a CPU, and offers five pretrained models. The catalog lists it for images, videos and DICOM.

ActionControl
Positive clickLeft mouse button
Negative clickShift + left mouse button
Finish the objectSpace
Color instances at randomShift + H
Hide all labelsCtrl + H

When many annotators click at once and the tool feels slow, start more sessions of the app. On Enterprise a running session can be shared with every user of the instance.

Train RITM on your own objects

Train RITM fine-tunes one of four pretrained HRNet checkpoints on a labeled images project, on a GPU agent. Run it from the project's context menu and press Finish training when you do not want it to continue. Then start the RITM Smart Tool with the path to your custom model, and annotators keep the same clicks with a model that knows your objects.

It helps most on objects unlike everyday photos, such as the plant images the custom Smart Tool post trains on. When labeled examples are scarce, the Flying Objects app generates synthetic training images by pasting labeled segments onto backgrounds, see synthetic data.

ClickSEG and EiSeg

  • Serve ClickSEG offers ten pretrained click models, among them CDNet (ICCV 2021), FocalClick (CVPR 2022), which segments a coarse region first and then refines it, and efficient baselines on MobileNet and PPLCNet backbones. GPU or CPU.
  • The EiSeg Smart Tool brings seven models from PaddleSeg's EISeg, which builds on RITM and EdgeFlow, in high-performance and lightweight versions for general scenes and portraits, and models for remote sensing and medical images.

All of them share the click controls, so switching is a matter of choosing another model in the Smart Tool.

RITM or Segment Anything?

The Segment Anything models also answer a box and track masks through video, and SAM 3 segments from a phrase; they are the usual general start. RITM is the one to fine-tune when your annotators keep correcting the same edges, and it also runs on a CPU. Masks drawn this way are bitmaps; if your export needs outlines, see polygon annotation and how model-assisted labeling fits into the workflow.

Frequently asked questions.

What is RITM?

RITM, from "Reviving Iterative Training with Mask Guidance for Interactive Segmentation", is a class-agnostic click model: each positive or negative click adds evidence, the previous mask is fed back in, and the model corrects only what the click pointed at.

Can I fine-tune RITM on my own images?

Yes. Train RITM fine-tunes one of four pretrained HRNet checkpoints on a labeled images project on a GPU agent. Then start the RITM Smart Tool with the path to your custom model.

Does RITM need a GPU?

No. The RITM Smart Tool runs on a GPU, or more slowly on a CPU, and offers five pretrained models.

What is interactive segmentation?

Segmentation driven by a person: you click on the object, or beside it to exclude an area, and the model returns a mask that each new click corrects. RITM, ClickSEG and EiSeg work this way in the Smart Tool, and SAM 2.1 also takes a box.

Train and serve models on your own data.

Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.