<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.
Raw data
{
"_id": null,
"home_page": "https://github.com/kadirnar/codeformer-pip",
"name": "codeformer-pip",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "pytorch,codeformer,face,face-swap,face-swapping,face-swap-pytorch,face-swapping-pytorch",
"author": "kadirnar",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/9c/74/b1346a6b85c54634b553d773bdcc696d6b4dcd9a6bc55c77cbfbad8dc223/codeformer-pip-0.0.4.tar.gz",
"platform": null,
"description": "<h2>\n Towards Robust Blind Face Restoration with Codebook Lookup Transformer\n</h2>\n\n<a href=\"https://badge.fury.io/py/codeformer-pip\"><img src=\"https://badge.fury.io/py/codeformer-pip.svg\" alt=\"pypi version\"></a>\n<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>\n\nThis repo is a PyTorch implementation of the paper [CodeFormer](https://arxiv.org/abs/2206.11253).\n\n### Installation\n```bash\npip install codeformer-pip\n```\n### Usage\n```python\nfrom codeformer.app import inference_app\n\ninference_app(\n image=\"test.jpg\",\n background_enhance=True,\n face_upsample=True,\n upscale=2,\n codeformer_fidelity=0.5,\n)\n```\n### Citation\n```bibtex\n@inproceedings{zhou2022codeformer,\n author = {Zhou, Shangchen and Chan, Kelvin C.K. and Li, Chongyi and Loy, Chen Change},\n title = {Towards Robust Blind Face Restoration with Codebook Lookup TransFormer},\n booktitle = {NeurIPS},\n year = {2022}\n}\n```\n\n### License\n\nThis project is licensed under NTU S-Lab License 1.0. Redistribution and use should follow this license.\n\n",
"bugtrack_url": null,
"license": "S-Lab",
"summary": "PyTorch implementation of CodeFormer",
"version": "0.0.4",
"split_keywords": [
"pytorch",
"codeformer",
"face",
"face-swap",
"face-swapping",
"face-swap-pytorch",
"face-swapping-pytorch"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9c74b1346a6b85c54634b553d773bdcc696d6b4dcd9a6bc55c77cbfbad8dc223",
"md5": "34299a33f3de3790d21c1ca432be26d8",
"sha256": "b0f7e1bcf9003b2abcf714265b83ec9b6cf30c2243e5a56f4c4f8d42a0262045"
},
"downloads": -1,
"filename": "codeformer-pip-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "34299a33f3de3790d21c1ca432be26d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 111922,
"upload_time": "2023-03-23T21:33:59",
"upload_time_iso_8601": "2023-03-23T21:33:59.831646Z",
"url": "https://files.pythonhosted.org/packages/9c/74/b1346a6b85c54634b553d773bdcc696d6b4dcd9a6bc55c77cbfbad8dc223/codeformer-pip-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-23 21:33:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "kadirnar",
"github_project": "codeformer-pip",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "codeformer-pip"
}