From patchwork Mon Mar 25 02:15:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chen, Wenbin" X-Patchwork-Id: 47418 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c889:b0:1a3:b6bb:3029 with SMTP id hb9csp936614pzb; Sun, 24 Mar 2024 19:15:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU4zF6VoOQSjCxaCe4zQRuzoPnwHJT0Zd6KmvUWdF8qXScc1eIGv9SHg5UUFreE5K3zcZWGaG5WWEoT4J8DNrfHhCDxgA3Q+0voiw== X-Google-Smtp-Source: AGHT+IGGvqPFD8tU9fBIjGs9K7eKK0Lssok8PrHSQpC+65RfB+unkdZL7u9Pj9Uqi2NBTgMtX3KM X-Received: by 2002:a17:907:7214:b0:a47:4fed:514a with SMTP id dr20-20020a170907721400b00a474fed514amr2328047ejc.52.1711332923213; Sun, 24 Mar 2024 19:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711332923; cv=none; d=google.com; s=arc-20160816; b=iJ2WZfmJBhnP/iqNGU+sGe2BOh+31IR6PD63EBzrpI4btQREeg3eq5G22DK5AyomFz Y+qKbP//rgWElanM4Sffg3OYpffy8425LaO1SQogAwqCKhGOD+nxU6tZsU999tsTTNX7 TkGAefJbks93sHnNYMoLc5ue4OIQezVjT1uVJl1IJy5Vv2SQk+1gw5klvEo00fkJzRWZ HAhxR+xiBuSkXjmH3wGnyrjP4SeLhmFtjGxtGjlZe6yp7lpGPTmvNgAvknsc2csBxIJf QR6eRRn+JX0uT0xT/3ugCVutG2jQc7dONrZdaNQTGH7GXuld3b8njpgL3rLc/EdYS6w5 LN0g== 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=Yd3TjUl2MY20z3MMpAzhwg1QBSPcQyi7jaFiJxAVQcE=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=q1dBQ5Ar5Y2DuflIYvD76S+wh0toUGx7s2EP/ebbzwDuniAWL1wMIxl4ikiERJLqRr ooskH7/Ehk8ytOUEjq8c2w2qSqQoA0n3SFRIKc/UetHuVPulL/hgc+zj091w2Qp/GA+u dubuj+XmlnXeLe1fDNtfFMubnQ44tKVyZw8om0GndPfkiz70T8r1j+WlqG7dTETaiTcV xgNw2OtOhknlq1sjrDr73om2GgpTToH/y3bNlOhHGpNsd5xvCKc0iCLoUDXGHe3O/4AH 3UOrPMnauHFzdjLREX/i2eOgKChsSVKIRJkl29XZrEURUF9pNlXa59VcVCnnO9ES8vWv IQCg==; 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=cf5Bjf7H; 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 x12-20020a1709064bcc00b00a4a989a07e7si14627ejv.132.2024.03.24.19.15.22; Sun, 24 Mar 2024 19:15:23 -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=cf5Bjf7H; 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 B294A68D4B7; Mon, 25 Mar 2024 04:15:19 +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.10]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 997E768D1FE for ; Mon, 25 Mar 2024 04:15:12 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711332917; x=1742868917; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=rWYdY2k3VK29ZvqaMU1Va/cp4gMHKSPrR0pntsMVQb4=; b=cf5Bjf7HphsCffcowYLkbtRAufUqpNCXW5kZU+fMKmAIsrE92Ub41PGW EZeBHUzrvNEqTFW8uDEr25V+3dIBr70lM/TC9TzGTA0/dfr/9GHpaqQxr +Fvzh8MUkCbQneNtee/rvV95buy8wG/UYeKTQYbMFD1lYeRVsoOelEza3 oKws/q+plI/F8KDGsRTH46c95DsHloSoVAG7uRHxLue8bdfNtmp2YkD0Q HrBJr8APD4oMqhCFQ6xh+fZkHr3rIvwOgQuGolU/nDZZTs4DuxjA8wtPN g7SLntaIvlCH3Slnzrp/xp65gQHLVtYMnojmfWNlQl4UL1ggAtr6hTcL/ A==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="17710268" X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="17710268" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2024 19:15:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="46462046" Received: from wenbin-z390-aorus-ultra.sh.intel.com ([10.239.156.43]) by orviesa002.jf.intel.com with ESMTP; 24 Mar 2024 19:15:09 -0700 From: wenbin.chen-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2024 10:15:08 +0800 Message-Id: <20240325021508.371987-1-wenbin.chen@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] 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: oIGPXlpRDmJK 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 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) +@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-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. @item input Set the input name of the dnn network.