From 7195b15a412904fcd96f5febfebef4ccd6320443 Mon Sep 17 00:00:00 2001 From: Julie Bareeva Date: Wed, 4 Aug 2021 19:31:53 +0300 Subject: [PATCH 1/2] add test data for LSTM w/ activations --- testdata/dnn/download_models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/testdata/dnn/download_models.py b/testdata/dnn/download_models.py index 6eca15c29..25a2c9fa0 100755 --- a/testdata/dnn/download_models.py +++ b/testdata/dnn/download_models.py @@ -869,6 +869,24 @@ def get_confirm_token(response): # in case of large files url='https://www.dropbox.com/s/qvmtszx5h339a0w/dasiamrpn_kernel_cls1.onnx?dl=1', sha='e9ccd270ce8059bdf7ed0d1845c03ef4a951ee0f', filename='onnx/models/dasiamrpn_kernel_cls1.onnx'), + Model( + name='LSTM Tanh Bidirectional', + url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/model.onnx', + sha='fb12fe6032c7f82c4fec44d2a2db36a0694677c3', + filename='onnx/models/lstm_cntk_tanh.onnx' + ), + Model( + name='LSTM Tanh Bidirectional Input', + url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/test_data_set_0/input_0.pb', + sha='db67a85da8017d714fbd97269890640f4179dca3', + filename='onnx/data/input_lstm_cntk_tanh.pb' + ), + Model( + name='LSTM Tanh Bidirectional Output', + url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/test_data_set_0/output_0.pb', + sha='46cf68f140ac79e72268c63d8bc70aa32c652b06', + filename='onnx/data/output_lstm_cntk_tanh.pb' + ) ] # Note: models will be downloaded to current working directory From 45db91593757238fc73064073ac1034c7ba10ac3 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 13 Aug 2021 11:27:29 +0000 Subject: [PATCH 2/2] dnn: put lstm_cntk_tanh testdata in opencv_extra --- testdata/dnn/download_models.py | 18 ------------------ .../dnn/onnx/data/input_lstm_cntk_tanh.pb | Bin 0 -> 58 bytes .../dnn/onnx/data/output_lstm_cntk_tanh.pb | 2 ++ testdata/dnn/onnx/models/lstm_cntk_tanh.onnx | Bin 0 -> 2829 bytes testdata/dnn/onnx/readme.lstm_cntk_tanh.txt | 3 +++ 5 files changed, 5 insertions(+), 18 deletions(-) create mode 100644 testdata/dnn/onnx/data/input_lstm_cntk_tanh.pb create mode 100644 testdata/dnn/onnx/data/output_lstm_cntk_tanh.pb create mode 100644 testdata/dnn/onnx/models/lstm_cntk_tanh.onnx create mode 100644 testdata/dnn/onnx/readme.lstm_cntk_tanh.txt diff --git a/testdata/dnn/download_models.py b/testdata/dnn/download_models.py index 25a2c9fa0..6eca15c29 100755 --- a/testdata/dnn/download_models.py +++ b/testdata/dnn/download_models.py @@ -869,24 +869,6 @@ def get_confirm_token(response): # in case of large files url='https://www.dropbox.com/s/qvmtszx5h339a0w/dasiamrpn_kernel_cls1.onnx?dl=1', sha='e9ccd270ce8059bdf7ed0d1845c03ef4a951ee0f', filename='onnx/models/dasiamrpn_kernel_cls1.onnx'), - Model( - name='LSTM Tanh Bidirectional', - url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/model.onnx', - sha='fb12fe6032c7f82c4fec44d2a2db36a0694677c3', - filename='onnx/models/lstm_cntk_tanh.onnx' - ), - Model( - name='LSTM Tanh Bidirectional Input', - url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/test_data_set_0/input_0.pb', - sha='db67a85da8017d714fbd97269890640f4179dca3', - filename='onnx/data/input_lstm_cntk_tanh.pb' - ), - Model( - name='LSTM Tanh Bidirectional Output', - url='https://github.com/microsoft/onnxruntime/raw/master/onnxruntime/test/testdata/CNTK/test_LSTM.tanh.bidirectional/test_data_set_0/output_0.pb', - sha='46cf68f140ac79e72268c63d8bc70aa32c652b06', - filename='onnx/data/output_lstm_cntk_tanh.pb' - ) ] # Note: models will be downloaded to current working directory diff --git a/testdata/dnn/onnx/data/input_lstm_cntk_tanh.pb b/testdata/dnn/onnx/data/input_lstm_cntk_tanh.pb new file mode 100644 index 0000000000000000000000000000000000000000..3523f13bb0263d14c0940116c4ef6093bc09df6c GIT binary patch literal 58 zcmd;JARw!5#p>oD&8B literal 0 HcmV?d00001 diff --git a/testdata/dnn/onnx/data/output_lstm_cntk_tanh.pb b/testdata/dnn/onnx/data/output_lstm_cntk_tanh.pb new file mode 100644 index 000000000..02fd903dc --- /dev/null +++ b/testdata/dnn/onnx/data/output_lstm_cntk_tanh.pb @@ -0,0 +1,2 @@ +BSplice1349_Output_0Jxè3=fÏ=%G¾s!Û=ñŒl½ß½Ô½×=A‰={Ù½±h>õte½)Ä*¾RÓè<'ÒÏ=b݉½O[­=½ç4hFTL!Rp3#Ay8-wj_kgjMaG7ckwKCS%%3l!CecqcW|Ko;hMC) z`@Y}r^S`VrK@Et0g==UGSOF-deRMq& zV0?DTbFSps22>!`S?BfCX6IP*T(30-L_wFu#d2(brR!WZ3e@Z{)dN(-Y6WRGv(4*c zTt3EMLpLy{m@tc3`)XPFCNdesRI@(D6JWiZS?6P#7@wc%QDfxOAeI(So9H0LU#u%* zx7T~w>SAp<&DG5Q_NZ}^0I@Y}bv47e{A>$j#Cp^kG6Cq>VAL+r^mZm-REdWcP8Q z23bhC0^6WLs^|htqEYkwbHIftT~p0Wub7>1Nh%)Xdcw5fi+QMLxQrhHS#s zxE|LS)aELK;RYHjG&np{YaL0)N|CYLBvkD=j@T^RvF5-}lr!NnUzzj;)xWP4dUX?M z#TE+$pLJ7Zli%|{>^X$m8-9l)+yuIEMgvDHJ9zhyo2uVG2nV=C;gV`EbV}|w`KdZ& z7!wV@r_NnDf%-eo!Bf|_p)Yriqt2q!sH1fnRSoXu^G;pmSGC?nF5CScK}vEJ$u*)KT|TB#W6mWT3)vjPD^w^`MLNf~n@3>5rJK;6 zaTj?D5TrjCM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