diff mbox series

[FFmpeg-devel,v3,2/2] doc/filters: Documentation to add sess_config option for tensorflow backend

Message ID 1619606829-25051-2-git-send-email-lance.lmwang@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,v3,1/2] avfilter/dnn/dnn_backend_tf: simplify the code with ff_hex_to_data
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Limin Wang April 28, 2021, 10:47 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 doc/filters.texi | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Comments

Guo, Yejun April 28, 2021, 12:31 p.m. UTC | #1
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> lance.lmwang@gmail.com
> Sent: 2021年4月28日 18:47
> To: ffmpeg-devel@ffmpeg.org
> Cc: Limin Wang <lance.lmwang@gmail.com>
> Subject: [FFmpeg-devel] [PATCH v3 2/2] doc/filters: Documentation to add
> sess_config option for tensorflow backend
> 
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  doc/filters.texi | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index e99d70a..24f2335 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -10161,6 +10161,9 @@ The label id is considered as name if the label
> file is not provided.
>  @item backend_configs
>  Set the configs to be passed into backend
> 
> +For tensorflow backend, you can set its configs with @option{sess_config}
> options,
> +please use tools/python/tf_sess_config.py to get the configs
> +
>  @item async
>  use DNN async execution if set (default: set),
>  roll back to sync execution if the backend does not support async.
> @@ -10214,6 +10217,9 @@ Set the input name of the dnn network.
>  @item output
>  Set the output name of the dnn network.
> 
> +For tensorflow backend, you can set its configs with @option{sess_config}
> options,
> +please use tools/python/tf_sess_config.py to get the configs
> +
>  @item async
>  use DNN async execution if set (default: set),
>  roll back to sync execution if the backend does not support async.
> @@ -10242,9 +10248,10 @@ Handle the Y channel with srcnn.pb (see
> @ref{sr} filter) for frame with yuv420p
>  @end example
> 
>  @item
> -Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes
> frame size, for format yuv420p (planar YUV formats supported):
> +Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes
> frame size, for format yuv420p (planar YUV formats supported), please
> +use tools/python/tf_sess_config.py to get the configs for your system.

use tools/python/tf_sess_config.py to get the configs of TensorFlow backend for your system.

>  @example
> -./ffmpeg -i 480p.jpg -vf
> format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:
> input=x:output=y -y tmp.espcn.jpg
> +./ffmpeg -i 480p.jpg -vf
> format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:
> input=x:output=y:backend_configs=sess_config=0x10022805320e09cdcccccc
> ccccec3f20012a01303801 -y tmp.espcn.jpg
>  @end example
> 
>  @end itemize
> @@ -18905,6 +18912,9 @@ 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.
> 
> +For tensorflow backend, you can set its configs with @option{sess_config}
> options,
> +please use tools/python/tf_sess_config.py to get the configs.
> +

this change can be removed since it is under vf.

>  @item scale_factor
>  Set scale factor for SRCNN model. Allowed values are @code{2}, @code{3}
> and @code{4}.
>  Default value is @code{2}. Scale factor is necessary for SRCNN model,
> because it accepts
> --
> 1.8.3.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Limin Wang April 28, 2021, 1:03 p.m. UTC | #2
On Wed, Apr 28, 2021 at 12:31:53PM +0000, Guo, Yejun wrote:
> 
> 
> > -----Original Message-----
> > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> > lance.lmwang@gmail.com
> > Sent: 2021年4月28日 18:47
> > To: ffmpeg-devel@ffmpeg.org
> > Cc: Limin Wang <lance.lmwang@gmail.com>
> > Subject: [FFmpeg-devel] [PATCH v3 2/2] doc/filters: Documentation to add
> > sess_config option for tensorflow backend
> > 
> > From: Limin Wang <lance.lmwang@gmail.com>
> > 
> > Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> > ---
> >  doc/filters.texi | 14 ++++++++++++--
> >  1 file changed, 12 insertions(+), 2 deletions(-)
> > 
> > diff --git a/doc/filters.texi b/doc/filters.texi
> > index e99d70a..24f2335 100644
> > --- a/doc/filters.texi
> > +++ b/doc/filters.texi
> > @@ -10161,6 +10161,9 @@ The label id is considered as name if the label
> > file is not provided.
> >  @item backend_configs
> >  Set the configs to be passed into backend
> > 
> > +For tensorflow backend, you can set its configs with @option{sess_config}
> > options,
> > +please use tools/python/tf_sess_config.py to get the configs
> > +
> >  @item async
> >  use DNN async execution if set (default: set),
> >  roll back to sync execution if the backend does not support async.
> > @@ -10214,6 +10217,9 @@ Set the input name of the dnn network.
> >  @item output
> >  Set the output name of the dnn network.
> > 
> > +For tensorflow backend, you can set its configs with @option{sess_config}
> > options,
> > +please use tools/python/tf_sess_config.py to get the configs
> > +
> >  @item async
> >  use DNN async execution if set (default: set),
> >  roll back to sync execution if the backend does not support async.
> > @@ -10242,9 +10248,10 @@ Handle the Y channel with srcnn.pb (see
> > @ref{sr} filter) for frame with yuv420p
> >  @end example
> > 
> >  @item
> > -Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes
> > frame size, for format yuv420p (planar YUV formats supported):
> > +Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes
> > frame size, for format yuv420p (planar YUV formats supported), please
> > +use tools/python/tf_sess_config.py to get the configs for your system.
> 
> use tools/python/tf_sess_config.py to get the configs of TensorFlow backend for your system.

OK, will update it. Also merge first version change for add backend_configs section.

> 
> >  @example
> > -./ffmpeg -i 480p.jpg -vf
> > format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:
> > input=x:output=y -y tmp.espcn.jpg
> > +./ffmpeg -i 480p.jpg -vf
> > format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:
> > input=x:output=y:backend_configs=sess_config=0x10022805320e09cdcccccc
> > ccccec3f20012a01303801 -y tmp.espcn.jpg
> >  @end example
> > 
> >  @end itemize
> > @@ -18905,6 +18912,9 @@ 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.
> > 
> > +For tensorflow backend, you can set its configs with @option{sess_config}
> > options,
> > +please use tools/python/tf_sess_config.py to get the configs.
> > +
> 
> this change can be removed since it is under vf.

OK, will remove it.

> 
> >  @item scale_factor
> >  Set scale factor for SRCNN model. Allowed values are @code{2}, @code{3}
> > and @code{4}.
> >  Default value is @code{2}. Scale factor is necessary for SRCNN model,
> > because it accepts
> > --
> > 1.8.3.1
> > 
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > 
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/doc/filters.texi b/doc/filters.texi
index e99d70a..24f2335 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -10161,6 +10161,9 @@  The label id is considered as name if the label file is not provided.
 @item backend_configs
 Set the configs to be passed into backend
 
+For tensorflow backend, you can set its configs with @option{sess_config} options,
+please use tools/python/tf_sess_config.py to get the configs
+
 @item async
 use DNN async execution if set (default: set),
 roll back to sync execution if the backend does not support async.
@@ -10214,6 +10217,9 @@  Set the input name of the dnn network.
 @item output
 Set the output name of the dnn network.
 
+For tensorflow backend, you can set its configs with @option{sess_config} options,
+please use tools/python/tf_sess_config.py to get the configs
+
 @item async
 use DNN async execution if set (default: set),
 roll back to sync execution if the backend does not support async.
@@ -10242,9 +10248,10 @@  Handle the Y channel with srcnn.pb (see @ref{sr} filter) for frame with yuv420p
 @end example
 
 @item
-Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes frame size, for format yuv420p (planar YUV formats supported):
+Handle the Y channel with espcn.pb (see @ref{sr} filter), which changes frame size, for format yuv420p (planar YUV formats supported), please
+use tools/python/tf_sess_config.py to get the configs for your system.
 @example
-./ffmpeg -i 480p.jpg -vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y -y tmp.espcn.jpg
+./ffmpeg -i 480p.jpg -vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y:backend_configs=sess_config=0x10022805320e09cdccccccccccec3f20012a01303801 -y tmp.espcn.jpg
 @end example
 
 @end itemize
@@ -18905,6 +18912,9 @@  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.
 
+For tensorflow backend, you can set its configs with @option{sess_config} options,
+please use tools/python/tf_sess_config.py to get the configs.
+
 @item scale_factor
 Set scale factor for SRCNN model. Allowed values are @code{2}, @code{3} and @code{4}.
 Default value is @code{2}. Scale factor is necessary for SRCNN model, because it accepts