HolyWu / vs-realesrgan

Real-ESRGAN function for VapourSynth
BSD 3-Clause "New" or "Revised" License
76 stars 9 forks source link
pytorch real-esrgan tensorrt vapoursynth

Real-ESRGAN

Training Real-World Blind Super-Resolution with Pure Synthetic Data, based on https://github.com/xinntao/Real-ESRGAN.

Dependencies

trt requires additional Python packages:

To install TensorRT, run pip install tensorrt==10.0.1 tensorrt-cu12_bindings==10.0.1 tensorrt-cu12_libs==10.0.1 --extra-index-url https://pypi.nvidia.com

To install Torch-TensorRT, Windows users can pip install the whl file on Releases. Linux users can run pip install --pre torch_tensorrt --index-url https://download.pytorch.org/whl/nightly/cu124 (requires PyTorch nightly build).

Installation

pip install -U vsrealesrgan
python -m vsrealesrgan

Usage

from vsrealesrgan import realesrgan

ret = realesrgan(clip)

See __init__.py for the description of the parameters.