summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-04-29 20:46:10 +0800
committerGuo, Yejun <yejun.guo@intel.com>2021-04-29 20:57:52 +0800
commit829d7bb518d405e7d9fcca79c6897fd33518c92e (patch)
treec8327e4924c301fa1eb2075963ab2177c3fcf147 /doc
parentf183d6555e714e00b41aec728feb8a731826cbdc (diff)
doc/filters: Documentation to add sess_config option for tensorflow backend
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index e99d70a2d3..36e35a175b 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -10214,6 +10214,12 @@ Set the input name of the dnn network.
@item output
Set the output name of the dnn network.
+@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 of TensorFlow backend for your system.
+
@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 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=0x10022805320e09cdccccccccccec3f20012a01303801 -y tmp.espcn.jpg
@end example
@end itemize