Metadata-Version: 2.1
Name: vscodeformer
Version: 1.0.0
Summary: CodeFormer function for VapourSynth
Project-URL: Homepage, https://github.com/HolyWu/vs-codeformer
Project-URL: Bug Tracker, https://github.com/HolyWu/vs-codeformer/issues
Author-email: HolyWu <holywu@gmail.com>
License: S-Lab License 1.0
        
        Copyright 2022 S-Lab
        
        Redistribution and use for non-commercial purpose in source and 
        binary forms, with or without modification, are permitted provided 
        that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright 
           notice, this list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright 
           notice, this list of conditions and the following disclaimer in 
           the documentation and/or other materials provided with the 
           distribution.
        
        3. Neither the name of the copyright holder nor the names of its 
           contributors may be used to endorse or promote products derived 
           from this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
        "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
        A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
        HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
        SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
        LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
        DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
        THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
        (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        
        In the event that redistribution and/or use for commercial purpose in 
        source or binary forms, with or without modification is required, 
        please contact the contributor(s) of the work.
License-File: LICENSE
Keywords: CodeFormer,VapourSynth
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: numpy>=1.24.2
Requires-Dist: opencv-python>=4.7.0.72
Requires-Dist: requests>=2.28.2
Requires-Dist: torch>=1.13.1
Requires-Dist: torchvision>=0.14.1
Requires-Dist: tqdm>=4.65.0
Requires-Dist: vapoursynth>=55
Description-Content-Type: text/markdown

# CodeFormer
Towards Robust Blind Face Restoration with Codebook Lookup TransFormer, based on https://github.com/sczhou/CodeFormer.


## Dependencies
- [NumPy](https://numpy.org/install)
- [OpenCV-Python](https://github.com/opencv/opencv-python)
- [PyTorch](https://pytorch.org/get-started) 1.13.1
- [VapourSynth](http://www.vapoursynth.com/) R55+


## Installation
```
pip install -U vscodeformer
python -m vscodeformer
```


## Usage
```python
from vscodeformer import codeformer

ret = codeformer(clip)
```

See `__init__.py` for the description of the parameters.
