Signed-off-by: Ting Fu
---
libswscale/x86/yuv_2_rgb.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswscale/x86/yuv_2_rgb.asm b/libswscale/x86/yuv_2_rgb.asm
index e05bbb89f5..575a84d921 100644
--- a/libswscale/x86/yuv_2_rgb.asm
+++ b/libswscale/x86/yuv_2_rgb.asm
Fixes ticket #8532
Signed-off-by: Ting Fu
---
V2:
Add ticket info in commit message
libswscale/x86/yuv_2_rgb.asm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswscale/x86/yuv_2_rgb.asm b/libswscale/x86/yuv_2_rgb.asm
index e05bbb89f5..575a84d921 100644
--- a
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 8
1 file changed, 8 insertions(+)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index 750a476726..e016571304 100644
--- a/libavfilter/dnn/dnn_backend_tf.c
+++ b/libavfilter/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 55 ++--
1 file changed, 31 insertions(+), 24 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index e016571304..c18cb4063f 100644
--- a/libavfilter/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
index c18cb4063f..c0aa510630 100644
--- a/libavfilter/dnn/dnn_backend_tf.c
+++ b/libavfilter/dnn
x: in_data})
imageio.imsave("out.jpg", np.squeeze(output))
Signed-off-by: Ting Fu
---
libavfilter/dnn/Makefile | 1 +
libavfilter/dnn/dnn_backend_native.h | 1 +
.../dnn/dnn_backend_native_layer_mathunary.c | 80 +++
Signed-off-by: Ting Fu
---
tests/dnn/.gitignore | 1 +
tests/dnn/Makefile | 1 +
tests/dnn/dnn-layer-mathunary-test.c | 81
tests/fate/dnn.mak | 5 ++
4 files changed, 88 insertions(+)
create mode 100644 tests
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index f032ca0684..ed42198195 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 23e1766ad0..9a7e07c98c 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index ed42198195..23e1766ad0 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index ac26f7445f..540ea4cef5 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 9a7e07c98c..ac26f7445f 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 540ea4cef5..bf77c44bbe 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 6885b4d318..90fce71a0c 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index a1ff05e5fb..0280debc0b 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index bf77c44bbe..a1ff05e5fb 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 0280debc0b..6885b4d318 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 90fce71a0c..5587e47ad5 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 5587e47ad5..1815f79f34 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index bf77c44bbe..a1ff05e5fb 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
V2:
Add more test number
Fix incorrect atanh unit test
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index a1ff05e5fb..0280debc0b 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 90fce71a0c..5587e47ad5 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 0280debc0b..6885b4d318 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
t'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)
print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")
output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_native_layer_mathunary.c | 4
libavfilter/dnn/dnn_backend_native_layer_mathunary.h | 1 +
tools/python/convert_from_tensorflow.py | 2 +-
tools/python/convert_header.py | 2 +-
4 files changed, 7
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 6885b4d318..90fce71a0c 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-test.c
index 5587e47ad5..683e623d95 100644
--- a/tests/dnn/dnn-layer-mathunary
Signed-off-by: Ting Fu
---
libavfilter/x86/vf_eq.asm| 19 +--
libavfilter/x86/vf_eq_init.c | 20
2 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/libavfilter/x86/vf_eq.asm b/libavfilter/x86/vf_eq.asm
index bf28691297..d6b51cf6df 100644
Signed-off-by: Ting Fu
---
libavfilter/vf_eq.c | 13 ---
libavfilter/vf_eq.h | 1 +
tests/checkasm/Makefile | 1 +
tests/checkasm/checkasm.c | 3 ++
tests/checkasm/checkasm.h | 1 +
tests/checkasm/vf_eq.c| 79 +++
tests/fate
Signed-off-by: Ting Fu
---
libavfilter/x86/Makefile | 3 +-
libavfilter/x86/vf_eq.asm| 82 ++
libavfilter/x86/vf_eq.c | 96
libavfilter/x86/vf_eq_init.c | 55 +
4 files changed, 139 insertions
Signed-off-by: Ting Fu
---
libavfilter/vf_eq.c | 13 ---
libavfilter/vf_eq.h | 1 +
tests/checkasm/Makefile | 1 +
tests/checkasm/checkasm.c | 3 ++
tests/checkasm/checkasm.h | 1 +
tests/checkasm/vf_eq.c| 79 +++
tests/fate
Signed-off-by: Ting Fu
---
libavfilter/x86/vf_eq.asm| 12 ++--
libavfilter/x86/vf_eq_init.c | 19 +++
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/libavfilter/x86/vf_eq.asm b/libavfilter/x86/vf_eq.asm
index 8460342896..a30a287029 100644
--- a
Signed-off-by: Ting Fu
---
libavfilter/x86/Makefile | 3 +-
libavfilter/x86/vf_eq.asm| 82 ++
libavfilter/x86/vf_eq.c | 96
libavfilter/x86/vf_eq_init.c | 55 +
4 files changed, 139 insertions
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 5 +
libswscale/x86/yuv2rgb_template.c | 58 ++-
libswscale/x86/yuv_2_rgb.asm | 163 +++---
3 files changed, 208 insertions(+), 18 deletions(-)
diff --git a/libswscale/x86/yuv2rgb.c b
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86/swscale.c | 16 +-
libswscale/x86/yuv2rgb.c | 81 ++
libswscale/x86/yuv2rgb_template.c | 441 ++
libswscale/x86/yuv_2_rgb.asm | 270 ++
5
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 8 +-
libswscale/x86
Tested using this command:
./ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 151 to 389 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86
Tested using this command:
./ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 151 to 389 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 8 +-
libswscale/x86
Signed-off-by: Ting Fu
---
libswscale/swscale_unscaled.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index d9260c151a..0d109da2d7 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2032,7
Tested using this command:
./ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 151 to 389 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 8 +-
libswscale/x86
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86/swscale.c | 16 +-
libswscale/x86/yuv2rgb.c | 81 +++---
libswscale/x86/yuv2rgb_template.c | 441 ++
libswscale/x86/yuv_2_rgb.asm | 270 ++
5
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on my local machine.
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 7 +-
libswscale/x86
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c
Signed-off-by: Ting Fu
---
libswscale/x86/Makefile | 1 +
libswscale/x86/swscale.c | 16 +-
libswscale/x86/yuv2rgb.c | 81 +++---
libswscale/x86/yuv2rgb_template.c | 441 ++
libswscale/x86/yuv_2_rgb.asm | 270 ++
5
Signed-off-by: Ting Fu
---
V7:
Fix compile issue when user configure with --disable-mmx.
Fix issue when running ./ffmpeg with --cpuflags mmx/ssse3.
Adjust the SIMD verify logic in libswscale/x86/yuv2rgb.c
libswscale/x86/Makefile | 1 +
libswscale/x86/swscale.c
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 38
The original inline assembly and nasm code have the same fps when called by
command.
NASM code almost has no impact on the perfromance.
Signed-off-by: Ting Fu
---
V8:
Remove all reindention to make review easier.
Fix some improper indention.
Reserve the "inline" for
Tested using this command:
/ffmpeg -pix_fmt yuv420p -s 1920*1080 -i ArashRawYuv420.yuv \
-vcodec rawvideo -s 1920*1080 -pix_fmt rgb24 -f null /dev/null
The fps increase from 389 to 640 on Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Signed-off-by: Ting Fu
---
libswscale/x86/yuv2rgb.c | 38
Adding DCO_RGB color order to DNNColorOrder, since tensorflow model
needs this kind of color oder as input.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 1 +
libavfilter/dnn/dnn_io_proc.c| 14 +++---
libavfilter/dnn_interface.h | 1 +
3 files changed, 13
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 49
libavfilter/dnn_filter_common.c | 45 +
libavfilter/dnn_filter_common.h | 6 ++--
libavfilter/vf_derain.c | 2 +-
libavfilter/vf_sr.c | 2
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 39 ++--
libavfilter/vf_dnn_detect.c | 32 +-
2 files changed, 63 insertions(+), 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
, 458),
label: 1, confidence: 8033/1.
[Parsed_showinfo_1 @ 0x33e65f0] index: 3, region: (342, 0) -> (690, 325),
label: 1, confidence: 5878/1.
There are two boxes of dog with cores 94.05% & 93.45% and two boxes of person
with scores 80.33% & 58.78%.
Signed-of
Adding DCO_RGB color order to DNNColorOrder, since tensorflow model
needs this kind of color oder as input.
Signed-off-by: Ting Fu
---
V2:
Rebase patch to latest code
libavfilter/dnn/dnn_backend_tf.c | 1 +
libavfilter/dnn/dnn_io_proc.c| 14 +++---
libavfilter/dnn_interface.h
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 49 ++---
libavfilter/dnn_filter_common.c | 53 ++--
libavfilter/dnn_filter_common.h | 6 ++--
libavfilter/vf_derain.c | 2 +-
libavfilter/vf_sr.c | 2
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_tf.c | 39 ++--
libavfilter/vf_dnn_detect.c | 32 +-
2 files changed, 63 insertions(+), 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c
, 458),
label: 1, confidence: 8033/1.
[Parsed_showinfo_1 @ 0x33e65f0] index: 3, region: (342, 0) -> (690, 325),
label: 1, confidence: 5878/1.
There are two boxes of dog with cores 94.05% & 93.45% and two boxes of person
with scores 80.33% & 58.78%.
Signed-of
Extract common code of filter_frame() and drawgrid_filter_frame() to
draw_region().
Signed-off-by: Ting Fu
---
libavfilter/vf_drawbox.c | 160 ++-
1 file changed, 58 insertions(+), 102 deletions(-)
diff --git a/libavfilter/vf_drawbox.c b/libavfilter
label,\
drawbox=box_source=side_data_detection_bboxes -y face_detect.jpeg
Signed-off-by: Ting Fu
---
doc/filters.texi | 8 +++
libavfilter/vf_drawbox.c | 52 ++--
2 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/doc/filters.texi
label,drawbox=box_source=
side_data_detection_bboxes,drawtext=text_source=side_data_detection_bboxes:fontcolor=green:\
fontsize=40, -y face_detect.jpeg
Please note, the default fontsize of vf_drawtext is 12, which may be too
small to be seen clearly.
Signed-off-by: Ting Fu
---
doc/filters
CID 1485004: Uninitialized variables (UNINIT)
Using uninitialized value "x" when calling "*pixel_belongs_to_region".
Signed-off-by: Ting Fu
---
libavfilter/vf_drawbox.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_drawbox.c b/liba
CID 1485003: Memory - illegal accesses (UNINIT)
Using uninitialized value "sd".
Signed-off-by: Ting Fu
---
libavfilter/vf_drawtext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 382d589e26..c4c0989
show all input/output names when the input or output name not correct
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c
b/libavfilter/dnn
detailed steps please refer:
https://github.com/openvinotoolkit/openvino/blob/master/build-instruction.md
inference model with GPU please add: optioins=device=GPU
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 52 ++
1 file changed, 44 insertions(+), 8
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
index 554a36b0dc..fa484c0905 100644
--- a/libavfilter/dnn/dnn_interface.c
+++ b/libavfilter/dnn
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
index 554a36b0dc..fa484c0905 100644
--- a/libavfilter/dnn/dnn_interface.c
+++ b/libavfilter/dnn
Mark native as deprecated for backed_type option. Modify realted error
message.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_interface.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
index
Signed-off-by: Ting Fu
---
doc/filters.texi| 43 +-
tools/python/convert.py | 56 ---
tools/python/convert_from_tensorflow.py | 607
tools/python/convert_header.py | 26 -
4 files changed, 4 insertions(+), 728 deletions
Native is deprecated value for backed_type option. Modify realted error
message.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_interface.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
index
Signed-off-by: Ting Fu
---
doc/filters.texi| 43 +-
tools/python/convert.py | 56 ---
tools/python/convert_from_tensorflow.py | 607
tools/python/convert_header.py | 26 -
4 files changed, 4 insertions(+), 728 deletions
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_io_proc.c | 2 ++
libavfilter/vf_dnn_processing.c | 30 +-
2 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/libavfilter/dnn/dnn_io_proc.c b/libavfilter/dnn/dnn_io_proc.c
index c9b49be3bd..2744cb6502
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 8
1 file changed, 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c
b/libavfilter/dnn/dnn_backend_openvino.c
index d27e451eea..050be97209 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b
Move openvino model/inference request creation and initialization steps
from ff_dnn_load_model_ov to new function init_model_ov, for later input
resize support.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 153 +++--
1 file changed, 93 insertions
video_name.mp4 -vf dnn_processing=dnn_backend=openvino:\
model=model_name.xml:input=input_name:output=output_name:\
options=device=CPU\&input_resizable=1 -y output_video_name.mp4
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 21 +++--
1 file changed
video_name.mp4 -vf dnn_processing=dnn_backend=openvino:\
model=model_name.xml:input=input_name:output=output_name:\
options=device=CPU\&input_resizable=1 -y output_video_name.mp4
Signed-off-by: Ting Fu
---
V2:
rebase to latest code
libavfilter/dnn/dnn_backend_openvino.c
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 8
1 file changed, 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c
b/libavfilter/dnn/dnn_backend_openvino.c
index 5271d1caa5..8476f4fb38 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b
Move openvino model/inference request creation and initialization steps
from ff_dnn_load_model_ov to new function init_model_ov, for later input
resize support.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 196 ++---
1 file changed, 111 insertions
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 8
1 file changed, 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c
b/libavfilter/dnn/dnn_backend_openvino.c
index 5271d1caa5..8476f4fb38 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b
Move openvino model/inference request creation and initialization steps
from ff_dnn_load_model_ov to new function init_model_ov, for later input
resize support.
Signed-off-by: Ting Fu
---
libavfilter/dnn/dnn_backend_openvino.c | 203 ++---
1 file changed, 118 insertions
video_name.mp4 -vf dnn_processing=dnn_backend=openvino:\
model=model_name.xml:input=input_name:output=output_name:\
options=device=CPU\&input_resizable=1 -y output_video_name.mp4
Signed-off-by: Ting Fu
---
V3:
rebase to latest code and add missing code
libavfilter
When one of output[i] & expected_output is NAN, the unit test will always pass.
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-te
When one of output[i] & expected_output is NAN, the unit test will always pass.
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-te
When one of output[i] & expected_output is NAN, the unit test will always pass.
Signed-off-by: Ting Fu
---
tests/dnn/dnn-layer-mathunary-test.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/dnn/dnn-layer-mathunary-test.c
b/tests/dnn/dnn-layer-mathunary-te
1 - 100 of 140 matches
Mail list logo