Towards Robust Blind Face Restoration with Codebook Lookup TransFormer, based on https://github.com/sczhou/CodeFormer.
- Dlib
- NumPy
- OpenCV-Python
- PyTorch 1.13.1
- VapourSynth R55+
Dlib
is only required when using detector=1
. Windows users can download the Python wheel file on Releases.
pip install -U vscodeformer
python -m vscodeformer
from vscodeformer import codeformer
ret = codeformer(clip)
See __init__.py
for the description of the parameters.