From d087b609370e6bf1463490f26ffae932fd559bfc Mon Sep 17 00:00:00 2001 From: Dhanwanth1803 Date: Wed, 25 Oct 2023 21:16:57 +0530 Subject: [PATCH 1/2] added testdata for crop #24384 --- testdata/dnn/darknet/crop.cfg | 10 ++++++++++ testdata/dnn/darknet/crop_in.npy | Bin 0 -> 488 bytes testdata/dnn/darknet/crop_out.npy | Bin 0 -> 200 bytes testdata/dnn/darknet/generate_darknet_models.py | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 testdata/dnn/darknet/crop.cfg create mode 100644 testdata/dnn/darknet/crop_in.npy create mode 100644 testdata/dnn/darknet/crop_out.npy diff --git a/testdata/dnn/darknet/crop.cfg b/testdata/dnn/darknet/crop.cfg new file mode 100644 index 000000000..9b6cea1cd --- /dev/null +++ b/testdata/dnn/darknet/crop.cfg @@ -0,0 +1,10 @@ +[net] +# Training +batch=1 +height=5 +width=6 +channels=3 + +[crop] +crop_height=3 +crop_width=2 \ No newline at end of file diff --git a/testdata/dnn/darknet/crop_in.npy b/testdata/dnn/darknet/crop_in.npy new file mode 100644 index 0000000000000000000000000000000000000000..06478c7b7a68763630d7563430738b49b4f9133f GIT binary patch literal 488 zcmbR27wQ`j$;eQ~P_3SlTAW;@Zl$1ZlV+l>qoAIaUsO_*m=~X4l#&V(cT3DEP6dh= zXCxM+0{I$-Its=*3Z^;=W|}$*wF+baF80t}HuvPr_m_Uu-uHav^L<|z8rk0pH?vK< z$7lcW@Q(dAI0Efc)B5&zDqpw%6j--!XSKxsW3C;xeosH|PhG{mKS}wWUEHlE`v)#7 z?5}fwv{n4DbiZNj!hKo{;`Wh7@%uvpSK1x$nPcw}s%H1%>D|4T_-yu9MjzW}_w1bg zi;FkyH4kw(uupzx@5q&8CvbSZeO}LneWr|B_FsY-9gf9&*cpfI*q1j`&i=GXlD#xH z$ANFN#O(Jj^WV3!RD9psrS0~83i|ff^9Aw0DgTx696Vc8GkTx&Otg t(|b=k&e(r{D*OJj=B@iK&suG7cFNjbI+x>stdP#Wb4?ceALg3d0|1Y0$jtx% literal 0 HcmV?d00001 diff --git a/testdata/dnn/darknet/crop_out.npy b/testdata/dnn/darknet/crop_out.npy new file mode 100644 index 0000000000000000000000000000000000000000..0a9ea6ec98705551b700d154d75badd7068f0a0b GIT binary patch literal 200 zcmbR27wQ`j$;eQ~P_3SlTAW;@Zl$1ZlV+l>qoAIaUsO_*m=~X4l#&V(cT3DEP6dh= zXCxM+0{I$-Its>MWTdI1P^&-&;MyRlWS^SmcVPLanFoxnvK~uusCi=0I%e%>5@FBMtxncP2pg literal 0 HcmV?d00001 diff --git a/testdata/dnn/darknet/generate_darknet_models.py b/testdata/dnn/darknet/generate_darknet_models.py index 9a38a3cf6..a3decc4e6 100644 --- a/testdata/dnn/darknet/generate_darknet_models.py +++ b/testdata/dnn/darknet/generate_darknet_models.py @@ -37,4 +37,4 @@ def genTestData(name, inpShape, outShape): genTestData('route_multi', [1, 6, 3, 6], [1, 4, 2, 3]) genTestData('relu', [1, 2, 3, 4], [1, 2, 3, 4]) genTestData('sam', [1, 2, 3, 4], [1, 4, 3, 4]) - +genTestData('crop', [1, 3, 5, 6], [1, 3, 3, 2]) From 198f2dde34f5c007be0f5ace708da42e9c1f3fb0 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Wed, 20 Dec 2023 12:18:17 +0300 Subject: [PATCH 2/2] Update test data --- testdata/dnn/darknet/crop.cfg | 11 +++++++---- testdata/dnn/darknet/crop_out.npy | Bin 200 -> 200 bytes testdata/dnn/darknet/generate_darknet_models.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/testdata/dnn/darknet/crop.cfg b/testdata/dnn/darknet/crop.cfg index 9b6cea1cd..6020056e8 100644 --- a/testdata/dnn/darknet/crop.cfg +++ b/testdata/dnn/darknet/crop.cfg @@ -1,10 +1,13 @@ [net] -# Training batch=1 +channels=3 height=5 width=6 -channels=3 [crop] -crop_height=3 -crop_width=2 \ No newline at end of file +crop_height=2 +crop_width=3 +flip=1 +exposure=1 +saturation=1 +angle=0 diff --git a/testdata/dnn/darknet/crop_out.npy b/testdata/dnn/darknet/crop_out.npy index 0a9ea6ec98705551b700d154d75badd7068f0a0b..0b700919058e1e351f41335cfaa647080f14b0b0 100644 GIT binary patch delta 95 zcmV-l0HFWK0muQ6LkKb~ATuc}AbpWhE|FjcNebb^c)+j`B0ptjPQZ@tUB9RDnZPpD z1;EqnR8^0S1sKBt-G(NBCv%e(nnR8^5sEG(NBCv%iNOA;6mc7r