[FFmpeg-devel] [PATCH V3 3/3] dnn/openvino: support model input resize

Guo, Yejun yejun.guo at intel.com
Mon Jan 18 07:30:07 EET 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Ting Fu
> Sent: 2021年1月18日 11:42
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH V3 3/3] dnn/openvino: support model input
> resize
> 
> OpenVINO APIs require specify input size to run the model, while some
> OpenVINO model does accept different input size. To enable this feature
> adding input_resizable option here for easier use.
> Setting bool variable input_resizable to specify if the input can be resizable or
> not.
> input_resizable = 1 means support input resize, aka accept different input size.
> input_resizable = 0 (default) means do not support input resize.
> Please make sure the inference model does accept different input size before
> use this option, otherwise the inference engine may report error(s).
> eg: ./ffmpeg -i video_name.mp4 -vf dnn_processing=dnn_backend=openvino:\
>       model=model_name.xml:input=input_name:output=output_name:\
>       options=device=CPU\&input_resizable=1 -y output_video_name.mp4
> 
> Signed-off-by: Ting Fu <ting.fu at intel.com>
> ---
> V3:
>     rebase to latest code and add missing code
> 
>  libavfilter/dnn/dnn_backend_openvino.c | 21 +++++++++++++++++++--
>  1 file changed, 19 insertions(+), 2 deletions(-)
> 
this patch set looks good to me, will push soon, thanks.


More information about the ffmpeg-devel mailing list