[FFmpeg-devel] [PATCH V2 2/2] vf_dnn_processing.c: add dnn backend openvino

Guo, Yejun yejun.guo at intel.com
Wed Jun 24 09:39:57 EEST 2020



> -----Original Message-----
> From: Guo, Yejun <yejun.guo at intel.com>
> Sent: 2020年6月11日 21:01
> To: ffmpeg-devel at ffmpeg.org
> Cc: Guo, Yejun <yejun.guo at intel.com>
> Subject: [PATCH V2 2/2] vf_dnn_processing.c: add dnn backend openvino
> 
> We can try with the srcnn model from sr filter.
> 1) get srcnn.pb model file, see filter sr
> 2) convert srcnn.pb into openvino model with command:
> python mo_tf.py --input_model srcnn.pb --data_type=FP32 --input_shape
> [1,960,1440,1] --keep_shape_ops
> 
> See the script at
> https://github.com/openvinotoolkit/openvino/tree/master/model-optimizer
> We'll see srcnn.xml and srcnn.bin at current path, copy them to the directory
> where ffmpeg is.
> 
> I have also uploaded the model files at
> https://github.com/guoyejun/dnn_processing/tree/master/models
> 
> 3) run with openvino backend:
> ffmpeg -i input.jpg -vf
> format=yuv420p,scale=w=iw*2:h=ih*2,dnn_processing=dnn_backend=openvino
> :model=srcnn.xml:input=x:output=srcnn/Maximum -y srcnn.ov.jpg (The
> input.jpg resolution is 720*480)
> 
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
>  doc/filters.texi                | 10 +++++++++-
>  libavfilter/vf_dnn_processing.c |  5 ++++-
>  2 files changed, 13 insertions(+), 2 deletions(-)

any comment for this patch set? thanks.


More information about the ffmpeg-devel mailing list