Skip to main content
QUICK REVIEW

[Paper Review] Efficient Semantic Video Segmentation with Per-frame Inference

Yifan Liu, Chunhua Shen|arXiv (Cornell University)|Feb 26, 2020
Advanced Vision and ImagingComputer Science43 references9 citations
TL;DR

This paper proposes a real-time semantic video segmentation method that enforces temporal consistency during training using a motion-guided temporal loss and a novel temporal knowledge distillation strategy, enabling compact models to achieve high accuracy and smooth predictions via per-frame inference—eliminating latency overhead and outperforming keyframe-based methods on Cityscapes and Camvid benchmarks.

ABSTRACT

For semantic segmentation, most existing real-time deep models trained with each frame independently may produce inconsistent results for a video sequence. Advanced methods take into considerations the correlations in the video sequence, e.g., by propagating the results to the neighboring frames using optical flow, or extracting the frame representations with other frames, which may lead to inaccurate results or unbalanced latency. In this work, we process efficient semantic video segmentation in a per-frame fashion during the inference process. Different from previous per-frame models, we explicitly consider the temporal consistency among frames as extra constraints during the training process and embed the temporal consistency into the segmentation network. Therefore, in the inference process, we can process each frame independently with no latency, and improve the temporal consistency with no extra computational cost and post-processing. We employ compact models for real-time execution. To narrow the performance gap between compact models and large models, new knowledge distillation methods are designed. Our results outperform previous keyframe based methods with a better trade-off between the accuracy and the inference speed on popular benchmarks, including the Cityscapes and Camvid. The temporal consistency is also improved compared with corresponding baselines which are trained with each frame independently. Code is available at: https://tinyurl.com/segment-video

Motivation & Objective

  • To address temporal inconsistency in real-time semantic video segmentation caused by independent frame processing.
  • To eliminate inference latency overhead from post-processing or multi-frame operations.
  • To improve compact model performance on video segmentation without sacrificing speed.
  • To enhance both accuracy and temporal smoothness through training-time constraints and knowledge distillation.

Proposed method

  • A motion-guided temporal loss is introduced, using predicted optical flow to propagate segmentation labels from one frame to the next for supervision.
  • A motion estimation network predicts per-pixel optical flow between consecutive frames to guide label propagation.
  • A new temporal knowledge distillation method encodes multi-frame dependencies using ConvLSTM to model pair-wise frame similarities.
  • Spatial knowledge distillation is combined with temporal distillation to improve both accuracy and consistency.
  • The method trains compact models (e.g., MobileNetV2, PSPNet18) with temporal constraints but performs inference on each frame independently.
  • Temporal consistency is enforced during training without adding computation during inference.

Experimental results

Research questions

  • RQ1Can temporal consistency be effectively enforced during training without introducing inference overhead?
  • RQ2How can compact models achieve high accuracy and smooth predictions in video segmentation?
  • RQ3Can temporal knowledge distillation improve both accuracy and temporal smoothness beyond standard distillation?
  • RQ4Does per-frame inference with training-time temporal constraints outperform keyframe-based methods in speed and consistency?

Key findings

  • The proposed method achieves higher mIoU (73.1%) and better temporal consistency (70.6%) on Cityscapes compared to the baseline PSPNet18 (69.8% mIoU, 68.5% TC).
  • On Camvid, the method reduces flickering in static regions (e.g., red box in Figure 8), producing stable predictions across frames.
  • The enhanced MobileNetV2 model achieves faster inference speed and higher accuracy than state-of-the-art keyframe-based methods like Accel and DVSN on a single GTX 1080Ti.
  • Temporal consistency (TC) improves significantly for moving objects like 'bus' (from 47.2% to 48.5%) and 'train' (from 55.5% to 76.4%) on Cityscapes.
  • The method achieves a 97.7% temporal consistency score for 'road' and 93.0% for 'sky' on Cityscapes, outperforming the baseline.
  • The ablation study confirms that combining spatial and temporal distillation yields the best performance, with temporal distillation being critical for consistency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.