FeMaSR function for VapourSynth
Project description
FeMaSR
Real-World Blind Super-Resolution via Feature Matching with Implicit High-Resolution Priors, based on https://github.com/chaofengc/FeMaSR.
Dependencies
- PyTorch 2.4.0.dev or later
- VapourSynth R66 or later
trt
requires additional Python packages:
- TensorRT 10.0.1
- Torch-TensorRT 2.4.0.dev
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 vsfemasr
python -m vsfemasr
Usage
from vsfemasr import femasr
ret = femasr(clip)
See __init__.py
for the description of the parameters.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.