From patchwork Fri Jul 26 02:54:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuewei Meng X-Patchwork-Id: 14073 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 966F1447058 for ; Fri, 26 Jul 2019 05:54:44 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 76C6568AB34; Fri, 26 Jul 2019 05:54:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1CDC068AA25 for ; Fri, 26 Jul 2019 05:54:38 +0300 (EEST) Received: by mail-ed1-f54.google.com with SMTP id p15so51922103eds.8 for ; Thu, 25 Jul 2019 19:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=gVjXK/ljlerZbcnE4pOp+hU/JVfjYOYpYIiGKeWU7OQ=; b=cS1skIACxcZ1CtI1eH/G3rmy4u856AozyDVP+B21J2jouUZxpRcKcaSwOEuWSpvy3K e3oAwqs1OEYLRQBkU7mHF03/ZGBEQzoqCNm8+5BVeZWTmAsf6ZudXNJRTpjmJSyfjUL1 QluATTo6gh/731AtLufzOEi/gfEBRFH37EDp+hDIIes0YQl1FUNTrkt7cZnYUZrsbqVm 3MMhumtPkBPHLeUnL1uRWw/Koh7I+ivRqnV+dYuu8zxKP9DINInhnmJd2qvGnEDSK03L RDcbeftyKA54A0tQUNkrO1f/ISWxK8N8S3utfBc3IonWnltyxfDs2TVzG498lq0oKlxJ tT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=gVjXK/ljlerZbcnE4pOp+hU/JVfjYOYpYIiGKeWU7OQ=; b=djqgknQ0qYZ+G069lt/F8kE1dbwGQOPhnJLPUPVLGAgs5i5TAVaOZQHKqu09O91a/7 aY1wE2m6vLFcycMvEjsv4ZxUTFg30B3sMNjCPxSOHgZl7AlwqrctnOcYk7fI5tsjGVQT tOvSkHlrgc/zpPMonNcJeM9tANEFX1w0H+Tx2xwD+tlD/m17OkSfXNsfKNIlwQvODEKN UjilhHDoLQBj58abobDaGTnUi2h5zf9QkCx8Sn0WbzkDYre+YycHW8XSyf8Gn/FDJeJx LAtkR3656nydb9ZagR4eDBIo99ksoxAw6Icj9K0MoA1ltogvpXUo0OMZIsL/+TU2w8+d k1Qw== X-Gm-Message-State: APjAAAXCZHZmmk+LkIOS1HlCBELo36RMJbc0813yAC39eCPV7RYQ5T9F GVJ/FJwJCp8K9QD97n2LXgf1BU+ynZhr2zAOg4/jHSi8 X-Google-Smtp-Source: APXvYqyFfl9zw/4htqauWr+Ibndpd8tfvtaumOxNxC1kwXUF1d1R2zIkXuyBaJ+S5dvGNUyLN7/U1iume4LclQ2tvcA= X-Received: by 2002:a50:b561:: with SMTP id z30mr80177113edd.87.1564109677341; Thu, 25 Jul 2019 19:54:37 -0700 (PDT) MIME-Version: 1.0 From: Xuewei Meng Date: Fri, 26 Jul 2019 10:54:27 +0800 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH v2] libavfilter: Update derain filter doc. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Cc: lq@chinaffmpeg.org Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Add the usage of tensorflow model in derain filter. Training scripts as well as scripts for tf/native model generation are provided in the repository at https://github.com/XueweiMeng/derain_filter.git. Signed-off-by: Xuewei Meng --- doc/filters.texi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) The filter accepts the following options: @table @option @@ -8380,14 +8383,19 @@ the following values: @table @samp @item native Native implementation of DNN loading and execution. + +@item tensorflow +TensorFlow backend. To enable this backend you +need to install the TensorFlow for C library (see +@url{https://www.tensorflow.org/install/install_c}) and configure FFmpeg with +@code{--enable-libtensorflow} @end table Default value is @samp{native}. @item model Set path to model file specifying network architecture and its parameters. -Note that different backends use different file formats. TensorFlow backend -can load files for both formats, while native backend can load files for only -its format. +Note that different backends use different file formats. TensorFlow and native +backend can load files for only its format. @end table @section deshake diff --git a/doc/filters.texi b/doc/filters.texi index c4ba907981..8e67dddecf 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8367,9 +8367,12 @@ Recurrent Squeeze-and-Excitation Context Aggregation Net (RESCAN). See @url{ http://openaccess.thecvf.com/content_ECCV_2018/papers/Xia_Li_Recurrent_Squeeze-and-Excitation_Context_ECCV_2018_paper.pdf }. @end itemize -Training scripts as well as scripts for model generation are provided in +Training as well as model generation scripts are provided in the repository at @url{https://github.com/XueweiMeng/derain_filter.git}. +Native model files (.model) can be generated from TensorFlow model +files (.pb) by using tools/python/convert.py +