-**2023.04.19**: :whale: Training codes and config files are public available now.
-**2023.04.09**: Add features of inpainting and colorization for cropped face images.
-**2023.02.10**: Include `dlib` as a new face detector option, it produces more accurate face identity.
-**2022.10.05**: Support video input `--input_path [YOUR_VIDEO.mp4]`. Try it to enhance your videos! :clapper:
-**2022.09.14**: Integrated to :hugs: [Hugging Face](https://huggingface.co/spaces). Try out online demo! [](https://huggingface.co/spaces/sczhou/CodeFormer)
-**2022.09.09**: Integrated to :rocket: [Replicate](https://replicate.com/explore). Try out online demo! [](https://replicate.com/sczhou/codeformer)
-**2022.09.04**: Add face upsampling `--face_upsample` for high-resolution AI-created face enhancement.
-**2022.08.23**: Some modifications on face detection and fusion for better AI-created face enhancement.
-**2022.08.07**: Integrate [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) to support background image enhancement.
-**2022.07.29**: Integrate new face detectors of `['RetinaFace'(default), 'YOLOv5']`.
-**2022.07.17**: Add Colab demo of CodeFormer. <ahref="https://colab.research.google.com/drive/1m52PNveE4PBhYrecj34cnpEeiHcC5LTb?usp=sharing"><imgsrc="https://colab.research.google.com/assets/colab-badge.svg"alt="google colab logo"></a>
-**2022.07.16**: Release inference code for face restoration. :blush:
- After VQGAN training, you can pre-calculate code sequence for the training dataset to speed up the later training stages:
> python scripts/generate_latent_gt.py
- If you don't require training your own VQGAN, you can find pre-trained VQGAN (`vqgan_code1024.pth`) and the corresponding code sequence (`latent_gt_code1024.pth`) in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
- Pre-trained CodeFormer of stage II (`codeformer_stage2.pth`) can be found in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
- Pre-trained CodeFormer (`codeformer.pth`) can be found in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
---
:whale: The project was built using the framework [BasicSR](https://github.com/XPixelGroup/BasicSR). For detailed information on training, resuming, and other related topics, please refer to the documentation: https://github.com/XPixelGroup/BasicSR/blob/master/docs/TrainTest.md