From patchwork Thu Mar 21 06:50:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chen, Wenbin" X-Patchwork-Id: 47286 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a4a:b0:1a3:31a3:7958 with SMTP id zu10csp362194pzb; Wed, 20 Mar 2024 23:50:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU8kPkfnwhpwfUuQZy+5zeO4LBMjk/kD7dv4Ia7A9SDz7v/EbnfVNkbBTHGvti0+vCfLiZsLFNMAVCAvsjsIi4v5yDPCwjGkKsbgg== X-Google-Smtp-Source: AGHT+IGXtMh87L7RBWVAmJdXD8IVecqIPRb93/0pJ7JgLAdq7ulSvK1sXFVarJyNQzI8UnFlKiI5 X-Received: by 2002:a17:907:9612:b0:a46:aed5:2552 with SMTP id gb18-20020a170907961200b00a46aed52552mr3600001ejc.45.1711003857040; Wed, 20 Mar 2024 23:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711003857; cv=none; d=google.com; s=arc-20160816; b=zKWEzWl07iS1gvuWSazLvE0nIRedPthV45yDYBQjBFsTSIq4bRmeOobtZE0L1j4zlt 9g2u/upvj558gOJH3XVdNY9NL4z0w1Nmf6bSWs50Zikw2A6p/EV8dXXc4ObuppbcFfMU 5xgX6Ezuy1VpuBu58ZnvwLcQxbHVULK8TjaKLYpaK8Tu9SMTY4fy4TZXCzoBk1vrLmO0 GCK8uyzXqlYjv78YZgtPR3UemX4u/gp8i5wK1oAvgNMKbJSmiZlNKoCasi8HBMYuV6Pc 5E2vKrK16uXuAQ0+Gh4rYPgkZ4TZs1EdTCaZawDU516tpVinV8mq9/dCJTb9qoI8HIN/ AeXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=Nk851k+ZfDG5agWei7p3OpnSKc9tAZowxT1oKe76ANo=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=OzziAjnXqyBYuJ4nkDJwcOR4hcS7vRn6gvU46qJJaKF0UlmZuNJXsufNqQll2mhRNZ jbQLSi7Pdk3Zkw/Yf7BXfSLkRnVcfXY24V/imnJgkjDQOBWyX9G8EKL7037jXkDqdFAu ESeCOJTLeYih1RD54CaChepy05vFxEyWUv+b+0ZpyBfR8sagO+PZ9KWKikxez7ITXLFY d1hOJK+phYyUDQUne4DpE6qVkspVPOpT1jcJb1D+2pqmTE5oZP91KP6+dtawqjgAHePM Dge2XU0YQmg7ilnfMxDZgkrT2dxJ3ZS/dyDRfKrmhG45Gv1ca25JBXHXwe6kinpE/uwG kH3g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=dHK2Makm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e10-20020a170906314a00b00a46c1279aa2si3532950eje.583.2024.03.20.23.50.56; Wed, 20 Mar 2024 23:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=dHK2Makm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F19A168D536; Thu, 21 Mar 2024 08:50:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CDCC168D4C4 for ; Thu, 21 Mar 2024 08:50:45 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711003851; x=1742539851; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=vASBAjViiXCkZ6ht4dZQWtwwA6XmoZ4uus643KV1+FA=; b=dHK2MakmIerZlhjE+32U5fH++6jvk+Seqljk2s0zjVQ2LmycIntfQZr/ dxqPq3lRCYO9FShyU/mU8mtoa7Ef37H2o/UmMrv2s2AciRdoyy78Bov3m 2PsG5fm7ix1aPb/kP+tm8PQ8gWJkNU6dNrH8Upe682Yq6t6gYd0NB3Mn2 CDOre3TzeAItgg7d0qvfoVod0X7jjKq+K479eCJ2BL3zgxZjKGY72SYev Hi1vDzDOO8NPwpvVGrSYIvK/56KcumVaBf6S0QLwGFELI7xkrd3OV9kQG JIzxTOipsRvkBoj3BUBs68xXC4OJYFPgHQ4AzNzWzXgc4OlXGISmRlieA g==; X-IronPort-AV: E=McAfee;i="6600,9927,11019"; a="5804739" X-IronPort-AV: E=Sophos;i="6.07,142,1708416000"; d="scan'208";a="5804739" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 23:50:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,142,1708416000"; d="scan'208";a="14301800" Received: from wenbin-z390-aorus-ultra.sh.intel.com ([10.239.156.43]) by orviesa010.jf.intel.com with ESMTP; 20 Mar 2024 23:50:42 -0700 From: wenbin.chen-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Thu, 21 Mar 2024 14:50:40 +0800 Message-Id: <20240321065040.4146676-1-wenbin.chen@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] doc: Add libtoch backend option to dnn_processing X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: rHyqub4vIaFi From: Wenbin Chen Signed-off-by: Wenbin Chen --- doc/filters.texi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 913365671d..20605e72b2 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -12069,11 +12069,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) +@item torch +Libtorch backend. To enable this backend you need to build and install Libtroch +for C++ library. Please download cxx11 ABI version (see +@url{https://pytorch.org/get-started/locally}) +and configure FFmpeg with @code{--enable-libtorch +--extra-cflag=-I/libtorch_root/libtorch/include +--extra-cflag=-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. @item input Set the input name of the dnn network.