Introduction
Interactive Segmentation (IS) is a fundamental task in computer vision that allows users to extract objects from images by providing sparse guidance, such as clicks, bounding boxes, or scribbles. While click-based methods have dominated the field due to their simplicity, they often suffer from a "precision tax." Selecting small objects on touchscreens is difficult, and selecting complex groups—such as a flock of birds or a bowl of fruit—requires a tedious, repetitive sequence of clicks.
This paper proposes a shift in the interaction paradigm by introducing "loose contours" as a primary input. The authors argue that drawing a continuous path is more intuitive for humans and captures a higher density of user intent. By moving from discrete points to continuous paths, the proposed method achieves significant efficiency gains, particularly in complex scenes.
Methodology
Architectural Integration
The researchers built their approach on the RITM (Reviving Iterative Training with Mask guidance) framework, a state-of-the-art click-based model. They modified the architecture to include a dedicated "interactive branch" designed to process contour-based inputs alongside the image features. The model utilizes an HRNet (High-Resolution Network) backbone, which is essential for maintaining high-resolution spatial features throughout the network, ensuring precise boundary estimation.
Simulating Human Input
A major hurdle in training contour-based models is the lack of large-scale datasets containing human-drawn paths. To circumvent this, the authors developed a sophisticated simulation pipeline. This pipeline takes standard ground-truth segmentation masks and applies a series of random distortions to mimic the "looseness" of human drawing. These distortions include:
- Morphological Transforms: Dilation and erosion to vary thickness.
- Elastic Deformations: To simulate the natural jitter of a human hand.
- Gaussian Blurring and Scaling: To account for varying levels of precision.
- Hole Filling: Ensuring the simulated input reflects a closed or semi-closed loop.
Filled Encoding
Through extensive ablation studies, the authors discovered that the representation of the contour significantly impacts performance. They found that representing a contour as a "filled" binary mask—where the entire area inside the loop is marked—performs substantially better than representing it as a thin line. This "filled encoding" provides the convolutional neural network (CNN) with better spatial context, allowing it to distinguish the object's interior from the background more effectively.
Datasets and Evaluation
The model was trained on massive, standard segmentation datasets, including LVIS, COCO, and SBD. To evaluate the effectiveness of contours against traditional clicks, the authors introduced two new datasets:
- UserContours: 2,000 images of common objects annotated with real-world, human-drawn contours.
- UserContours-G (Groups): A subset of 50 challenging images featuring small, overlapping objects or groups of objects (e.g., a row of identical bottles) where click-based methods typically struggle.
Standard benchmarks like GrabCut, Berkeley, and DAVIS were also used to ensure the model's generalizability across different domains.
Key Results and Insights
The Efficiency of Continuity
The primary finding of the study is that a single circular motion captures significantly more information than a single click. On standard benchmarks, one loose contour achieved the same Intersection over Union (IoU) as 3 to 5 clicks from a state-of-the-art click-based model.
The "Group" Advantage
The benefits of contour-based input scale with the complexity of the scene. On the UserContours-G dataset, the results were even more dramatic: a single contour was found to be equivalent to up to 20 clicks in terms of segmentation accuracy. This demonstrates that contours are uniquely suited for "crowded" scenes where individual object selection is impractical.
Real-Time Performance
Despite the added complexity of processing continuous paths, the model remains highly efficient. Inference takes approximately 80 milliseconds on a single RTX 3090 GPU. This low latency makes the method suitable for real-time interactive applications on both desktop and mobile platforms.
Conclusion and Future Work
This research demonstrates that "loose contours" are a viable and highly efficient alternative to traditional click-based interactive segmentation. By mathematically modeling human drawing imperfections, the authors successfully trained a robust model without the need for massive manual contour annotation.
While the current study focused on the impact of the initial positive interaction, the authors acknowledge that extremely complex scenes may still require "negative" interactions to subtract unwanted areas. Future work will explore the integration of multi-turn contour interactions and the adaptation of this method for video segmentation, where the temporal consistency of a drawn path could provide even stronger guidance for the network.
Summary updated