PyTorch implementation of CodeFormer
Project description
Towards Robust Blind Face Restoration with Codebook Lookup Transformer
This repo is a PyTorch implementation of the paper CodeFormer.
Installation
pip install codeformer-pip
Usage
from codeformer.app import inference_app
inference_app(
image="test.jpg",
background_enhance=True,
face_upsample=True,
upscale=2,
codeformer_fidelity=0.5,
)
Citation
@inproceedings{zhou2022codeformer,
author = {Zhou, Shangchen and Chan, Kelvin C.K. and Li, Chongyi and Loy, Chen Change},
title = {Towards Robust Blind Face Restoration with Codebook Lookup TransFormer},
booktitle = {NeurIPS},
year = {2022}
}
License
This project is licensed under NTU S-Lab License 1.0. Redistribution and use should follow this license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codeformer-pip-0.0.4.tar.gz
(111.9 kB
view details)
File details
Details for the file codeformer-pip-0.0.4.tar.gz
.
File metadata
- Download URL: codeformer-pip-0.0.4.tar.gz
- Upload date:
- Size: 111.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f7e1bcf9003b2abcf714265b83ec9b6cf30c2243e5a56f4c4f8d42a0262045 |
|
MD5 | 34299a33f3de3790d21c1ca432be26d8 |
|
BLAKE2b-256 | 9c74b1346a6b85c54634b553d773bdcc696d6b4dcd9a6bc55c77cbfbad8dc223 |