Xiaobin Lu1,*, Xiaobin Hu2,*, Jun Luo3, Ben Zhu4, Yaping Ruan4, Wenqi Ren1
1Shenzhen Campus of Sun Yat-sen University
2Tencent Youtu Lab
3University of Chinese Academy of Sciences
4Tencent Cloud Architecture Platform
Should you find our method beneficial, your support in starring this repository would be greatly appreciated. Thank you!
# clone this repo
git clone https://github.com/838143396/3Diffusion.git
cd 3Diffusion
# create environment
conda create -n faceModel python=3.10
conda activate faceModel
pip install -r requirements.txt
# install pytorch3d(https://github.com/facebookresearch/pytorch3d/blob/main/INSTALL.md)
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d
If you need the pretrained model, please download from baidu drive (password:5iig) , and put it into weights folder.
We provide some examples for inference, check inference.py for more arguments.
# for aligned face inputs
python inference.py --aligned --in_path ./input --out_path ./output
Please cite us if our work is useful for your research.
@article{lu20243d,
title={3D Priors-Guided Diffusion for Blind Face Restoration},
author={Lu, Xiaobin and Hu, Xiaobin and Luo, Jun and Zhu, Ben and Ruan, Yaping and Ren, Wenqi},
journal={arXiv preprint arXiv:2409.00991},
year={2024}
}
This project is released under the Apache 2.0 license.
This project is based on StableDiffusion and Difface. Thanks for their awesome work.
If you have any questions, please feel free to contact with me at luxb@mail2.sysu.edu.cn.