Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Beyond Alignment: Blind Video Face Restoration via Parsing-Guided Temporal-Coherent Transformer

Xidian University,Southwest University of Science and Technology 
IJCAI 2024

showcase
🔥 For more results, visit our project page,gif page 🔥
⭐ If you found this project helpful to your projects, please help star this repo. Thanks! 🤗

if you have any questions; please send message to me via Wechat or email: kepengxu11@gmail.com

Wechat

Update

  • 2024.09: Update Windows inference script.(Thanks @KFK121)
  • 2024.08: 🤗 This model has been successfully pushed to the Hugging Face kepeng/pgtformer-base, making it accessible to researchers and developers worldwide. Feel free to explore, test, and utilize it
  • 2024.08: We released the initial version of the inference code and models. Stay tuned for continuous updates!
  • 2024.04: This repo is created!

Getting Started

Dependencies and Installation

required packages in requirements

# git clone this repository
git clone https://github.com/kepengxu/PGTFormer
cd PGTFormer

# create new anaconda env
conda create -n pgtformer python=3.8 -y
conda activate pgtformer

# install python dependencies
conda install -c conda-forge dlib
conda install -c conda-forge ffmpeg

Quick Inference

Download Pre-trained Models

All pretrained models can also be automatically downloaded during the first inference. You can also download our pretrained models from Google Drive,BaiduYun,Huggingface to the weights folder.

Prepare Testing Data

We provide a example in assets/inputdemovideo.mp4. If you would like to test your own face videos, place them in the same folder.

Inference

[Note] 🚀🚀🚀 Our method does not require pre-alignment to standard face poses and has better consistency. The results will be saved in the results folder.

🧑🏻 Video Face Restoration It is highly recommended to use ffmpeg to enhance the encoded video online, which can maintain the restored quality as much as possible.

# Just Run This 
# Input Video Width and Height == 512
mkdir exp
python inference.py --input_video=assets/inputdemovideo.mp4 --output_video=exp/output_demo.mp4

🚀🚀🚀Awesome Video Face Restoration Method Can be Found There!🚀🚀🚀

Awesome Video Face Restoration

🔥 News

  • 2024.04: 🎉 This paper is accepted by IJCAI 2024

  • Beyond Alignment: Blind Video Face Restoration via Parsing-Guided Temporal-Coherent Transformer (IJCAI 2024)

Results report in VFHQ implementation.

MetricsBicubicEDVRMBasicVSREDVRM-GANBasicVSR-GANDFDNetGFP-GANGPEN
PSNR26.84229.457 (Red)29.472 (Red)26.68225.81325.17825.97826.672
SSIM0.79090.8428 (Red)0.8430 (Red)0.76380.7410.75600.77230.7768
LPIPS0.40980.32880.33090.3076 (Red)0.3214 (Red)0.40080.34460.3607

Results reported in our implementation.

MethodPSNRSSIMLPIPSDegLMDTLMEMSRLPSNRSSIMLPIPSDegLMDTLMEMSRL
BasicVSR++26.700.79060.308638.312.896.9724.1526.170.74820.359436.142.397.0923.91
HiFaceGAN28.450.82970.292434.022.255.7325.8127.410.79260.316732.741.995.5924.99
GFP-GAN27.770.82520.289331.702.406.1125.6826.270.78640.316730.142.136.1724.69
VQFR25.590.77880.300337.832.997.4123.6025.330.74590.313433.272.407.0523.04
Codeformer28.710.82260.246028.111.975.8226.3227.880.80180.273826.551.745.6025.54
Ours30.740.86680.209524.411.634.2028.1629.660.84080.223023.091.354.0927.33

Acknowledgement

This project is based on BasicSR. Some codes are brought from Codeformer. We also adopt the VFHQ dataset to train network.

Citation

If you find our repo useful for your research, please consider citing our paper:

@article{xu2024beyond,
title={Beyond Alignment: Blind Video Face Restoration via Parsing-Guided Temporal-Coherent Transformer},
author={Xu, Kepeng and Xu, Li and He, Gang and Yu, Wenxin and Li, Yunsong},
journal={IJCAI 2024},
year={2024}
}

License and Acknowledgement

This project is open sourced under (https://github.com/kepengxu/PGTFormer/blob/main/LICENSE). Redistribution and use should follow this license. The code framework is mainly modified from CodeFormer. The page is modified from KEEP

Contact

If you have any question, please feel free to contact us via kepengxu11@gmail.com.

关于 About

[IJCAI'24] Beyond Alignment: Blind Video Face Restoration via Parsing-Guided Temporal-Coherent Transformer
face-restorationsuper-resolutionvideo-restoration

语言 Languages

Python100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
0
Total Commits
峰值: 1次/周
Less
More

核心贡献者 Contributors