Refocusing Any Video: Temporally Consistent Video Refocusing for Dynamic Focal Planes

Research Center for Information Technology Innovation, Academia Sinica

SIGGRAPH Asia 2026

Input video
Target focus map
RAV output

TL;DR: Refocus anything in a video after capture. We render smooth, temporally consistent bokeh at user-specified dynamic focal planes.

Abstract

Video refocusing enables the focal plane of a shot to be adjusted after capture, even when the original video was recorded with arbitrary and time-varying focus. Existing video restoration methods assume static blur kernels and become unstable under dynamic focus, while video bokeh methods require restrictive inputs. We present Refocusing Any Video (RAV), a video refocusing framework that renders temporally smooth bokeh at user-specified dynamic focal planes. RAV introduces temporal sharpness and face-aware correspondence constraints for stable video refocusing under severe defocus. Experiments show stronger temporal consistency, identity preservation, and overall refocus quality than image refocusing baselines.

Dynamic Refocusing Results

This example shows the original defocused video, the input and target focal-plane maps, and the final refocused video.

Input
Input focus map
Target focus map
RAV output

Baseline Comparison

Compare RAV with DiffCamera, GenFocus, and Learn2Refocus across six scenes. Each sample includes the input video, input and target focus maps, and ground truth. Focus maps use grayscale, with white indicating the focal plane.

Zoom-Inset Comparison

The zoom-inset videos show local detail and temporal behavior under the same target focus setting.

Quantitative Results

We evaluate on 100 held-out videos, each 60 frames long: 50 from UltraVideo-AIF and 50 from CelebV-HQ-AIF. Each dataset includes 25 constant-focus and 25 time-varying-focus clips. Image refocusing baselines are applied frame by frame.

↓ Lower is better. ↑ Higher is better. In method comparisons, red bold marks the best result and blue underlined marks the second best. IDS measures identity similarity on the CelebV-HQ-AIF face subset only.

Scroll tables horizontally to view all columns.

Video Refocusing

Full refocusing pipeline on the combined benchmark.
Method LPIPS ↓ FVD ↓ tOF ↓ tLP ↓ IDS ↑
DiffCamera 0.2457413.473.09250.05430.5523
Learn2Refocus 0.2464478.663.26050.04340.5206
Genfocus 0.1545323.623.95200.05880.7347
RAV (ours) 0.1598264.892.25860.00950.7766

RAV achieves the best FVD, tOF, tLP, and identity similarity, while Genfocus achieves the lowest LPIPS.

Inputs and target refocused videos are synthesized with BokehMe. These metrics measure agreement with the synthesized references; the user study below complements them with direct perceptual judgments.

User Study

95 participants compare anonymized outputs on 12 videos for temporal consistency and spatial refocusing accuracy. Percentages below include all valid responses, including “None / difficult to judge.”

Pairwise preferences for RAV, the compared baseline, or no preference.
Comparison Criterion RAV Baseline None /
difficult to judge
vs. DiffCameraTemporal consistency 78.24%11.51%10.25%
vs. DiffCameraSpatial refocusing accuracy 71.44%16.53%12.03%
vs. Learn2RefocusTemporal consistency 66.98%22.01%11.01%
vs. Learn2RefocusSpatial refocusing accuracy 65.30%25.16%9.54%
vs. GenfocusTemporal consistency 78.97%8.26%12.76%
vs. GenfocusSpatial refocusing accuracy 64.54%15.27%20.19%

Each row sums to approximately 100% due to rounding. Bold marks the most selected response.

Stage 1: Video Defocus Deblurring

All-in-focus intermediate outputs compared with ground-truth all-in-focus videos on the full benchmark.
Method LPIPS ↓ FVD ↓ tOF ↓ tLP ↓ IDS ↑
DiffCamera 0.2507430.543.58190.06390.6776
Genfocus 0.2096389.039.74150.09620.7491
RAV (ours) 0.2098263.602.69530.00770.7846

Learn2Refocus is omitted because it does not produce an explicit all-in-focus output.

Core Ablations

Both ablations evaluate Stage 1 on CelebV-HQ-AIF. Lower is better for all metrics; bold marks the better variant.

Temporal Sharpness Consistency Loss (LTSC)
VariantMMD ↓tLP ↓FVD ↓
Without LTSC0.006050.0158262.76
With LTSC0.005750.0080263.60
Facial Correspondence Loss (LFC) and Refiner
VariantLD ↓LVD ↓
Without both2.5630.719
With both2.5030.700

MMD is the squared maximum mean discrepancy between per-frame Laplacian-variance sequences. LTSC improves sharpness-distribution alignment and tLP, with a small increase in FVD.

LD is Landmark Distance; LVD is Landmark Velocity Distance. Removing LFC also removes its associated Refiner module.

Execution Time

Runtime for an 80-frame video on an NVIDIA RTX Pro 6000 (Blackwell) GPU and Intel Xeon 6517P CPU. Bold marks the lowest reported time.
MethodResolutionTime (s) ↓
DiffCamera†512 × 5121283
Learn2Refocus512 × 8962104
Genfocus512 × 8961772
RAV (ours)512 × 896731

† DiffCamera is evaluated at 512 × 512 because its released model does not support 512 × 896 inputs; its runtime uses a different resolution.

Data Source

We adapted Ultra Video to create Ultra Video All in Focus (UltraVideo-AIF), which we use for both qualitative and quantitative evaluation.

BibTeX

@inproceedings{gan2026refocusinganyvideo,
  title     = {Refocusing Any Video: Temporally Consistent Video Refocusing for Dynamic Focal Planes},
  author    = {Gan, Chee Kim and Chiu, Pin-Yen and Fang, I-Sheng and Chen, Jun-Cheng},
  year      = {2026},
  booktitle = {SIGGRAPH Asia 2026 Conference Papers},
}