sr

Scale the input by applying one of the super-resolution methods based on convolutional neural networks. Supported models:

Training scripts as well as scripts for model generation can be found at . Original repository is at .

The filter accepts the following options:

'dnn_backend'

Specify which DNN backend to use for model loading and execution. This option accepts the following values:

'native'

Native implementation of DNN loading and execution.

'tensorflow'

TensorFlow backend. To enable this backend you need to install the TensorFlow for C library (see ) and configure FFmpeg with --enable-libtensorflow

Default value is 'native'.

'model'

Set path to model file specifying network architecture and its parameters. Note that different backends use different file formats. TensorFlow backend can load files for both formats, while native backend can load files for only its format.

'scale_factor'

Set scale factor for SRCNN model. Allowed values are 2, 3 and 4. Default value is 2. Scale factor is necessary for SRCNN model, because it accepts input upscaled using bicubic upscaling with proper scale factor.