Abstract
Video deblurring remains a significant challenge in computer vision, particularly in balancing structural accuracy with realistic texture synthesis. This paper introduces CPGD-Net, a novel two-stage framework that leverages "free" metadata from video codecs—specifically Motion Vectors (MVs) and Coding Residuals (CRs)—to guide the restoration process. By combining these coding priors with the generative capabilities of pre-trained diffusion models, CPGD-Net achieves state-of-the-art performance in perceptual quality, effectively recovering sharp structures and high-frequency details that traditional methods often fail to reconstruct.
Introduction
Video deblurring aims to recover sharp frames from sequences degraded by camera shake or rapid object motion. While deep learning has significantly advanced the field, current state-of-the-art methods face two primary limitations. First, they often ignore the rich metadata already embedded in compressed video bitstreams, instead relying on computationally expensive operations like optical flow for frame alignment. Second, traditional restoration models, such as Recurrent Neural Networks (RNNs) or Transformers, frequently struggle with the "textureless trap," producing results that appear overly smooth or "plasticky" because they cannot effectively synthesize high-frequency textures lost during the blurring process.
CPGD-Net addresses these gaps by utilizing Motion Vectors and Coding Residuals as spatial and temporal guides. This approach not only improves computational efficiency but also provides a robust framework for generative detail synthesis using diffusion models.
Methodology
The CPGD-Net architecture is divided into two distinct stages: structural restoration and generative refinement.
Stage 1: Coding-Prior Feature Propagation (CPFP)
The first stage focuses on establishing a sound structural foundation. Rather than calculating optical flow from scratch, the CPFP module utilizes Motion Vectors from the video codec to perform initial frame alignment. To address regions where simple motion compensation is insufficient—such as occlusions or areas of extreme blur—the system employs Coding Residuals to generate attention masks. These masks guide Deformable Convolutions (DCN) to focus on complex regions, ensuring that the resulting frame is structurally coherent even if it lacks fine-grained texture.
Stage 2: Coding-Prior Controlled Generation (CPC)
To restore realistic textures, the framework integrates a pre-trained Stable Diffusion model. The authors introduce a CPControlNet module that injects MVs and CRs directly into the diffusion model's attention mechanism. This ensures the generative process is spatially aware, focusing its synthesis on motion-affected regions. By doing so, the model can "imagine" plausible high-frequency details, such as hair strands or fabric textures, while remaining faithful to the original scene's geometry.
Experimental Setup
The model was rigorously evaluated on three primary benchmarks:
- GoPro Dataset: A standard deblurring benchmark consisting of 3,214 blurry-sharp image pairs.
- DVD (Deep Video Deblurring) Dataset: A collection of 71 dynamic video sequences.
- HQ Video Dataset: A new dataset curated by the authors from CTC and MCML collections. This dataset includes 18 raw sequences (~8,980 frames) processed through a VVC (Versatile Video Coding) encoder to provide the necessary coding priors for bitstream-aware restoration research.
Results and Analysis
Perceptual Quality
CPGD-Net demonstrates a significant leap in perceptual metrics. Compared to previous state-of-the-art models like BSSTNet and RVRT, CPGD-Net achieved a 27-30% improvement in NIQE (a no-reference quality metric) and a 7-28% gain in MUSIQ. Qualitatively, the model restores significantly sharper edges and finer textures, such as individual leaves or clothing folds, where traditional models produce blurred or smoothed artifacts.
The Perception-Distortion Tradeoff
A key finding of the study is the discrepancy between perceptual metrics and pixel-matching metrics. While CPGD-Net scores lower on PSNR and SSIM, it produces visually superior results. This is a known characteristic of generative approaches: the model synthesizes plausible sharp details rather than attempting to perfectly match a blurry ground truth pixel-for-pixel, which often results in a "blurry average" in non-generative models.
Efficiency and Insights
The use of Coding Residuals as a proxy for blur proved highly effective. High residuals typically indicate where the video encoder's motion prediction failed—often the exact locations of motion blur. Furthermore, using MVs as a "warm-start" for motion estimation allows the network to achieve competitive performance with significantly fewer GFLOPs than standard optical flow methods like RAFT.
Discussion and Limitations
Despite its strengths, CPGD-Net has specific limitations:
- Metric Discrepancy: The lower PSNR/SSIM scores may be a hurdle for applications requiring mathematical exactness over visual realism.
- Inference Speed: While the coding priors are computationally "free," the diffusion-based second stage is inherently slower than pure feed-forward architectures, even with optimized samplers.
- Bitstream Dependency: The method requires access to compressed bitstream metadata. If a video is uncompressed or the metadata is stripped, the model's primary advantage is lost, suggesting a need for future work in prior estimation for raw sequences.
Conclusion
CPGD-Net represents a significant step forward in video restoration by bridging the gap between traditional video coding and modern generative AI. By treating codec metadata as a valuable prior rather than discarded overhead, the framework achieves a new level of visual fidelity in video deblurring, particularly in the synthesis of realistic high-frequency textures.
Summary updated