Scale the input by applying one of the super-resolution methods based on convolutional neural networks. Supported models:
-
Super-Resolution Convolutional Neural Network model (SRCNN). See https://arxiv.org/abs/1501.00092.
-
Efficient Sub-Pixel Convolutional Neural Network model (ESPCN). See https://arxiv.org/abs/1609.05158.
Training scripts as well as scripts for model generation are provided in the repository at https://github.com/HighVoltageRocknRoll/sr.git.
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 https://www.tensorflow.org/install/install_c) 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
and4
. Default value is2
. Scale factor is necessary for SRCNN model, because it accepts input upscaled using bicubic upscaling with proper scale factor.