Abstract
Compared with image scene parsing, video scene parsing introduces temporal information, which can effectively improve the consistency and accuracy of prediction. In this paper, we propose a Spatial-Temporal Semantic Consistency method to capture class-exclusive context information. Specifically, we design a spatial-temporal consistency loss to constrain the semantic consistency in spatial and temporal dimensions. In addition, we adopt an pseudo-labeling strategy to enrich the training dataset. We obtain the scores of 59.84% and 58.85% mIoU on development (test part 1) and testing set of VSPW, respectively. And our method wins the 1st place on VSPW challenge at ICCV2021.
Introduction
Video scene parsing involves assigning a semantic label (such as "car," "tree," or "printer") to every pixel in every frame of a video. While image-based models excel at static segmentation, they often suffer from temporal inconsistency in video sequences. An object correctly identified in one frame might be misclassified in the next due to camera movement or background changes, leading to visual "flickering."
Researchers from the Chinese Academy of Sciences and USTB identified that many models over-rely on class-inclusive context—the surrounding environment—to identify objects. When the background shifts, the model loses its reference. To address this, they proposed a Spatial-Temporal Semantic Consistency (STSC) approach that prioritizes class-exclusive context, focusing on what an object looks like based on other pixels of the same category across different frames.
Methods
The framework utilizes powerful backbones like the Swin Transformer and introduces several key innovations:
- Spatial-Temporal Consistency Loss (STCL): Inspired by contrastive learning, this loss function forces the network to produce similar feature representations for the same object category across adjacent frames. By comparing "positive samples" (same class) and "negative samples" (different classes), the model learns representations that are robust to environmental changes.
- Pseudo-Labeling Strategy: To handle the sparse labeling of the VSPW dataset (where only 15 fps are annotated), a "Teacher-Student" approach was employed. A high-performing teacher model generates labels for unlabeled frames, and high-confidence pixels are used to augment the training set for the student model.
- Feature Projection: A small projection head (FC $\to$ BN $\to$ ReLU) transforms features before the consistency loss is applied, further improving representation robustness.
Datasets
The primary benchmark for this study is the Video Scene Parsing in the Wild (VSPW) dataset, which includes 3,536 videos and over 251,000 frames across 124 categories. With resolutions up to 4K and diverse real-world scenarios, VSPW is a challenging benchmark for temporal consistency. The authors also used ADE20K and COCO for pre-training data augmentation.
Results and Insights
The STSC method achieved state-of-the-art results, securing 1st place in the VSPW challenge at ICCV 2021.
- Performance: The model reached 59.84% mIoU on the development set and 58.85% mIoU on the test set.
- Stability: The STCL loss improved the Video Consistency (VC8) score from 0.8916 to 0.9007, indicating significantly more stable predictions over time.
- Architecture: Transformer-based backbones (Swin-L) significantly outperformed traditional CNNs (ResNet-50), likely due to their superior ability to model long-range dependencies and global context.
Limitations
While highly effective, the approach has some limitations:
- Computational Cost: Training involves processing multiple frames and calculating complex contrastive losses, though there is no added overhead during inference.
- Teacher Dependency: The student model's performance is capped by the quality of the teacher model's pseudo-labels.
- Real-time Constraints: The focus was on maximizing accuracy for a challenge; real-world applications like autonomous driving would require further optimization for real-time frames-per-second (FPS) performance.
Summary updated