ECCV 2026

Unwarping the LensA Physics-Grounded Approach to Video Glasses Removal

Radim Špetlík1,*, David Futschik2, Radek Daněček2, Feitong Tan2, Ziqian Bai2, Rohit Pandey2, Yinda Zhang2
1Czech Technical University in Prague, FEE  ·  2Google
*Work done while at Google.
Code and dataset will be released upon publication.
Input with glasses
Input (with glasses)
ProPainter
ProPainter
Nano Banana
Nano Banana
Ours (JFSnet)
Ours (JFSnet)
Eyeglasses are not opaque overlays — they introduce depth-dependent refractive distortion and view-dependent specular reflections. Inpainting and generative baselines drift in identity, expression, and pose; our method removes the lenses while preserving the subject and staying temporally stable across frames.
27.68
FPS (real-time)
12,163
FFHQ eval images
1,860
curated identities

Abstract

High-fidelity removal of eyeglasses from video is a major challenge in facial attribute editing, as the underlying facial geometry is often obscured by complex refractive distortions and view-dependent specular reflections. While large-scale generative priors have shown promise in eyeglasses removal via static image inpainting, they often lack the structural constraints necessary to maintain identity, expression, and pose, leading to visible “identity drift” in both static images and dynamic sequences.

We propose a transfer framework that addresses the stochastic nature of generative priors. Our pipeline first extracts high-fidelity synthetic face images from a commercial-grade generative model (Nano Banana, Gemini 3 Pro Image), regularizes them via a three-stage structural filtering process to preserve identity, expression, and pose, and finally applies physically-based simulation of lens optics during training to provide diverse and realistic paired data. This transfers Nano Banana's photo-realistic, multi-view knowledge into a specialized restoration architecture, JFSnet (Joint Feature-Spatial network), which integrates DINOv2-based semantic features with a convolutional decoder and uses translation-equivariance constraints to improve temporal consistency and high-frequency detail.

On a curated FFHQ subset (12,163 images) our approach achieves high fidelity and structural accuracy while maintaining 27.68 FPS. In perceptual studies on CelebV-Text video sequences, our results are consistently preferred over diffusion- and GAN-based baselines for ocular consistency, temporal stability, and overall restoration quality.

How it works

1. Curated generative data. We synthesize eyeglass-free and glasses-wearing identities in sets of 13 poses and expressions with Nano Banana, then apply a three-stage structural filter (background L1 pose check, localized ocular/identity consistency, and a learned reconstruction threshold) to keep only high-fidelity, well-aligned pairs.

2. Physically-grounded augmentation. During training we substitute the lens regions with a physical simulation: refraction via ray-tracing through two spherical lens surfaces (Snell's law, radii from the diopter via Vogel's Rule) plus HDR specular reflections sampled along the reflected view ray. This synthesizes diverse, realistic optical effects far beyond what the generator produces on its own.

3. JFSnet restoration. A pre-trained DINOv2 (ViT-L/14) encoder supplies stable semantic features; a ResNet-based convolutional decoder reconstructs fine detail. A global skip connection bypasses the latent bottleneck, and a translation-equivariance loss enforces temporal stability without multi-frame inference or optical flow.

+1.0 D
+1.0 diopter
-2.0 D
−2.0 diopter
-4.0 D
−4.0 diopter
-6.0 D
−6.0 diopter
Physically-based refraction augmentation: the same face rendered through prescription lenses of varying strength, producing realistic depth-dependent magnification and distortion as training signal.

Results — Images (FFHQ)

Input
Input
ProPainter
ProPainter
LEDITS
LEDITS
Nano Banana
Nano Banana
Ours
Ours
Input
Input
ProPainter
ProPainter
LEDITS
LEDITS
Nano Banana
Nano Banana
Ours
Ours
Input
Input
ProPainter
ProPainter
LEDITS
LEDITS
Nano Banana
Nano Banana
Ours
Ours
Glasses removal on the curated FFHQ subset. Baselines hallucinate eye structure or leave frame/reflection residue; our method recovers clean, identity-consistent faces.

Results — Video (CelebV-Text)

Input
Input
ProPainter
ProPainter
ToE
ToE
STTN
STTN
Ours
Ours
Input
Input
ProPainter
ProPainter
ToE
ToE
STTN
STTN
Ours
Ours
Input
Input
ProPainter
ProPainter
ToE
ToE
STTN
STTN
Ours
Ours
Per-frame glasses removal on CelebV-Text. Our translation-equivariance constraint keeps restored features coherent across frames, suppressing the flicker typical of frame-by-frame video-inpainting baselines.

BibTeX

@inproceedings{spetlik2026unwarping,
  title     = {Unwarping the Lens: A Physics-Grounded Approach to Video Glasses Removal},
  author    = {{\v{S}}petl{\'i}k, Radim and Futschik, David and Dane{\v{c}}ek, Radek
               and Tan, Feitong and Bai, Ziqian and Pandey, Rohit and Zhang, Yinda},
  booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
  year      = {2026}
}