DINet
Dubs a face video to new audio by deforming reference-image features and inpainting the mouth region.
Diffusion and generative · 228 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 19.2M
- Operations
- 228
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2023
- Paper
- DINet: Deformation Inpainting Network for Realistic Face Visually Dubbing on High Resolution Video
- Cited by
- 67 (as of 28 October 2026)
- Authors
- Zhimeng Zhang, Zhipeng Hu, Wenjin Deng and others
- Source
- GitHub: MRzzm/DINet
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15663
- Graph hash
- f5293e61b910bcdeaffd4295aa3ebd371748e0218e0a929286b168a0374146c1
- Skeleton hash
- 1041801600cb72e53f6cd2f4e2f44166775256278e5e884bfdd2562e77ab6892
- Architecture hash
- 968154189d48e7f06a1d762f2cf223a9d2b7d144587c6981734922d4d34fcad2
- Diagram SHA-256
- 5fa9de28bd27ab058bc966d25efcf9c1d0353e9d4fbea4ecf33f0c5a551ade5d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
DINet (Deformation Inpainting Network) does face visual dubbing: it changes the mouth shape in a source video to match a driving audio track while keeping the identity and head pose of the source frame. Earlier few-shot dubbing models used convolutional networks with several up-sample layers to generate mouth pixels directly from latent embeddings. DINet instead deforms the feature maps of reference face images, which moves existing pixels into place and so keeps most of the texture detail.
The network has two parts, a deformation part and an inpainting part. In the deformation part, the feature maps of five reference face images are spatially deformed so that the mouth shape follows the driving audio and the head pose lines up with the source image. The deformation is done by the AdaAT operator, which computes different affine coefficients in different feature channels. The inpainting part merges the source-face features with the deformed features through convolutional layers to fill in the mouth region of the source face.
Faces are cropped and resized to 416 by 320, with the mouth region covering 256 by 256. Training uses a perception loss, a GAN loss and a lip-sync loss. The pretrained model released with the code was trained on the HDTF dataset with 363 training videos, and the repository notes that its generalization is limited. The paper lists its own limits as well: the method cannot handle changing lighting, dynamic backgrounds or camera movements.
Key idea. DINet dubs faces in high-resolution video by spatially deforming feature maps of reference images and inpainting the source mouth region, instead of generating mouth pixels directly.
- DINet
- Deformation Inpainting Network
- face visually dubbing
- face visual dubbing
- lip sync
- talking face
- talking head
- audio-driven dubbing
- mouth inpainting
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2023dinetdeformationinpaintingnetwork,
title={DINet: Deformation Inpainting Network for Realistic Face Visually Dubbing on High Resolution Video},
author={Zhimeng Zhang and Zhipeng Hu and Wenjin Deng and Changjie Fan and Tangjie Lv and Yu Ding},
year={2023},
eprint={2303.03988},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2303.03988},
}