Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkwang28/OSDFace
https://github.com/jkwang28/OSDFace
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jkwang28/OSDFace
- Owner: jkwang28
- Created: 2024-11-24T00:39:14.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T03:50:44.000Z (about 2 months ago)
- Last Synced: 2024-11-27T04:27:27.485Z (about 2 months ago)
- Size: 43.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-diffusion-categorized - [Code
README
# OSDFace: One-Step Diffusion Model for Face Restoration
[Jingkai Wang](https://github.com/jkwang28), [Jue Gong](https://github.com/gobunu), [Lin Zhang](https://github.com/wanliyungui), [Zheng Chen](https://zhengchen1999.github.io/), Xing Liu, Hong Gu, [Yutong Liu](https://isabelleliu630.github.io/), [Yulun Zhang](http://yulunzhang.com/), and [Xiaokang Yang](https://scholar.google.com/citations?user=yDEavdMAAAAJ), "One-Step Diffusion Model for Face Restoration", arXiv, 2024
[![arXiv](https://img.shields.io/badge/arXiv-Paper-.svg)](https://arxiv.org/abs/2411.17163)
[![download](https://img.shields.io/github/downloads/jkwang28/OSDFace/total.svg)](https://github.com/jkwang28/OSDFace/releases)
![visitors](https://visitor-badge.glitch.me/badge?page_id=jkwang28.OSDFace&left_color=green&right_color=red)
[![GitHub Stars](https://img.shields.io/github/stars/jkwang28/OSDFace?style=social)](https://github.com/jkwang28/OSDFace)[[supplementary material](https://github.com/jkwang28/OSDFace/releases/tag/v1)] [[project page](https://jkwang28.github.io/OSDFace-web/)] [pretrained models]
#### 🔥🔥🔥 News
- **2024-11-25:** This repo is released.
---
> **Abstract:** Diffusion models have demonstrated impressive performance in face restoration. Yet, their multi-step inference process remains computationally intensive, limiting their applicability in real-world scenarios. Moreover, existing methods often struggle to generate face images that are harmonious, realistic, and consistent with the subject’s identity. In this work, we propose OSDFace, a novel one-step diffusion model for face restoration. Specifically, we propose a visual representation embedder (VRE) to better capture prior information and understand the input face. In VRE, low-quality faces are processed by a visual tokenizer and subsequently embedded with a vector-quantized dictionary to generate visual prompts. Additionally, we incorporate a facial identity loss derived from face recognition to further ensure identity consistency. We further employ a generative adversarial network (GAN) as a guidance model to encourage distribution alignment between the restored face and the ground truth. Experimental results demonstrate that OSDFace surpasses current state-of-the-art (SOTA) methods in both visual quality and quantitative metrics, generating high-fidelity, natural face images with high identity consistency.
![](images/overall-osdface.png)
---
[](https://imgsli.com/MzIxNTU3) [](https://imgsli.com/MzIxNTU5) [](https://imgsli.com/MzIxNTYw) [](https://imgsli.com/MzIxNTYy)
[](https://imgsli.com/MzIxNTYz) [](https://imgsli.com/MzIxNTY4) [](https://imgsli.com/MzIxNTY5) [](https://imgsli.com/MzIxNTcz)
---
## ⚒️ TODO
* [ ] Release code and pretrained models
## 🔗 Contents
- [ ] Datasets
- [ ] Models
- [ ] Testing
- [ ] Training
- [x] [Results](#Results)
- [x] [Citation](#Citation)
- [ ] [Acknowledgements](#Acknowledgements)We achieved state-of-the-art performance on synthetic and real-world blur dataset. Detailed results can be found in the paper.
Quantitative Comparisons (click to expand)
Visual Comparisons (click to expand)
More Comparisons on Synthetic Dataset...
More Comparisons on Real-World Dataset...
If you find the code helpful in your resarch or work, please cite the following paper(s).
```
@article{wang2024osdface,
title={One-Step Diffusion Model for Face Restoration},
author={Wang, Jingkai and Gong, Jue and Zhang, Lin and Chen, Zheng and Liu, Xing and Gu, Hong and Liu, Yutong and Zhang, Yulun and Yang, Xiaokang},
journal={arXiv preprint arXiv:2411.17163},
year={2024}
}
```
[TBD]
![Visitor Count](https://profile-counter.glitch.me/jkwang28/count.svg)