[FFmpeg-devel] [PATCH v2] doc: Add libtoch backend option to dnn_processing

Guo, Yejun yejun.guo at intel.com
Mon Mar 25 13:16:22 EET 2024



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> wenbin.chen-at-intel.com at ffmpeg.org
> Sent: Monday, March 25, 2024 10:15 AM
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH v2] doc: Add libtoch backend option to
> dnn_processing
> 
> From: Wenbin Chen <wenbin.chen at intel.com>
> 
> Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
> ---
>  doc/filters.texi | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 18f0d1c5a7..bfa8ccec8b 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -12073,11 +12073,21 @@ need to build and install the OpenVINO for C
> library (see
>  @code{--enable-libopenvino} (--extra-cflags=-I... --extra-ldflags=-L... might
>  be needed if the header files and libraries are not installed into system path)
> 
> + at item torch
> +Libtorch backend. To enable this backend you need to build and install
> Libtroch
> +for C++ library. Please download cxx11 ABI version (see
> + at url{https://pytorch.org/get-started/locally})
> +and configure FFmpeg with @code{--enable-libtorch
> +--extra-cflags=-I/libtorch_root/libtorch/include
> +--extra-cflags=-I/libtorch_root/libtorch/include/torch/csrc/api/include
> +--extra-ldflags=-L/libtorch_root/libtorch/lib/}
> +
>  @end table
> 
>  @item model
>  Set path to model file specifying network architecture and its parameters.
> -Note that different backends use different file formats. TensorFlow,
> OpenVINO backend can load files for only its format.
> +Note that different backends use different file formats. TensorFlow,
> OpenVINO
> +and Libtorch backend can load files for only its format.
> 
LGTM, will push soon, thanks.


More information about the ffmpeg-devel mailing list