Metadata-Version: 2.1
Name: codeformer-pip
Version: 0.0.1
Summary: PyTorch implementation of CodeFormer
Home-page: https://github.com/kadirnar/codeformer-pip
Author: kadirnar
License: S-Lab
Keywords: pytorch,codeformer,face,face-swap,face-swapping,face-swap-pytorch,face-swapping-pytorch
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<h2>
  Towards Robust Blind Face Restoration with Codebook Lookup Transformer
</h2>

<a href="https://badge.fury.io/py/codeformer-pip"><img src="https://badge.fury.io/py/codeformer-pip.svg" alt="pypi version"></a>
<a href="https://huggingface.co/spaces/ArtGAN/Stable-Diffusion-ControlNet-WebUI"><img src="https://img.shields.io/badge/CodeFormer-Demo-orange" alt="HuggingFace Spaces"></a>

This repo is a PyTorch implementation of the paper [CodeFormer](https://arxiv.org/abs/2206.11253).

### Installation
```bash
pip install codeformer-pip
```
### Usage
```python
from codeformer.app import inference_app

inference_app(
  image="test.jpg",
  background_enhance=True,
  face_upsample=True,
  upscale=2,
  codeformer_fidelity=0.5,
)
```
### Citation
```bibtex
@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.

