diff mbox

[FFmpeg-devel,v2] libavfilter: Update derain filter doc.

Message ID CAMhM6pHgnyM+a3qU1AwDn4i_fmbNARNi4guirgBBTk+e7EWm=A@mail.gmail.com
State Superseded
Headers show

Commit Message

Xuewei Meng July 26, 2019, 2:54 a.m. UTC
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 <xwmeng96@gmail.com>
---
 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

Comments

Michael Niedermayer July 26, 2019, 5:34 p.m. UTC | #1
On Fri, Jul 26, 2019 at 10:54:27AM +0800, Xuewei Meng wrote:
> 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 <xwmeng96@gmail.com>
> ---
>  doc/filters.texi | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)
> 
> 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
> +
>  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}

patch corrupted by newlines

[...]
diff mbox

Patch

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
+