Abstract
This paper tackles the problem of real-time semantic segmentation of high definition videos using a hybrid GPU / CPU approach. We propose an Efficient Video Segmentation (EVS) pipeline that combines: (i) On the CPU, a very fast optical flow method, that is used to exploit the temporal aspect of the video and propagate semantic information from one frame to the next. It runs in parallel with the GPU. (ii) On the GPU, two Convolutional Neural Networks: A main segmentation network that is used to predict dense semantic labels from scratch, and a Refiner that is designed to improve predictions from previous frames with the help of a fast Inconsistencies Attention Module (IAM). The latter can identify regions that cannot be propagated accurately. We suggest several operating points depending on the desired frame rate and accuracy. Our pipeline achieves accuracy levels competitive to the existing real-time methods for semantic image segmentation (mIoU above 60%), while achieving much higher frame rates. On the popular Cityscapes dataset with high resolution frames (2048 x 1024), the proposed operating points range from 80 to 1000 Hz on a single GPU and CPU.
Introduction
Semantic segmentation—the task of assigning a category to every pixel in an image—is a cornerstone of autonomous systems. However, performing this task on high-definition video in real-time remains a significant challenge. Most existing video segmentation methods leverage temporal information to improve accuracy or consistency, which often adds computational overhead. The Efficient Video Segmentation (EVS) pipeline flips this paradigm by using temporal information as a shortcut to drastically reduce computation time without a substantial loss in quality.
The EVS Pipeline
The core innovation of EVS is a hybrid processing strategy that balances the workload between the CPU and GPU. While the GPU is occupied with deep Convolutional Neural Network (CNN) tasks, the CPU simultaneously calculates optical flow using the Dense Inverse Search (DIS) algorithm. This flow data is used to "warp" labels from the previous frame to the current one, avoiding the need to run a heavy segmentation network on every single frame.
To handle the imperfections of optical flow, such as occlusions or fast-moving boundaries, the system employs an Inconsistencies Attention Module (IAM). The IAM identifies unreliable regions by checking forward-backward consistency. Instead of re-segmenting the entire frame, a lightweight Refiner network on the GPU focuses exclusively on these inconsistent regions, reusing low-level features from previous full segmentations to update the labels efficiently.
Experimental Results
The authors evaluated the EVS pipeline on the Cityscapes dataset, which features high-resolution (2048 × 1024) urban street scenes. The results demonstrate a massive leap in throughput compared to state-of-the-art single-frame and video methods.
Key performance highlights include:
- Extreme Speed: While the baseline ICNet runs at 39 Hz, the EVS pipeline offers multiple operating points. The fastest configuration, EVS 14, reaches a staggering 1045 Hz, representing a 27x speedup.
- Maintained Accuracy: High-accuracy configurations like EVS 02 maintain a mean Intersection over Union (mIoU) of 66.8% (compared to the 67.3% baseline) while running at 49 Hz. Even at 122 Hz (EVS 06), the model maintains a respectable 63.0% mIoU.
- Effective Recovery: The Refiner successfully recovers accuracy in difficult classes like pedestrians and traffic signs that are often lost during simple propagation.
Conclusion
The EVS pipeline demonstrates that the CPU is an untapped resource in deep learning pipelines. By offloading optical flow and using selective refinement, EVS achieves ultra-high-speed segmentation suitable for the most demanding real-time applications. While accuracy eventually decays as the number of propagated frames increases, requiring periodic full-network resets, the system provides a versatile range of operating points for developers to balance speed and precision. Future work may involve dynamic adaptation, where the system automatically decides when to run a full segmentation based on scene complexity.
Summary updated