Plug-and-Play Image Restoration with Deep Denoiser Prior, based on https://github.com/cszn/DPIR.
- NumPy
- ONNX Runtime. CUDA and TensorRT require
onnxruntime-gpu
, while DirectML requiresonnxruntime-directml
. Note that only one ofonnxruntime
,onnxruntime-gpu
andonnxruntime-directml
should be installed at a time in any one environment. - VapourSynth R55 or newer.
- (Optional) CUDA Toolkit
- (Optional) cuDNN
- (Optional) TensorRT
pip install --upgrade vsdpir
python -m vsdpir
from vsdpir import DPIR
ret = DPIR(clip)
See __init__.py
for the description of the parameters.