diff --git a/testdata/dnn/darknet/crop.cfg b/testdata/dnn/darknet/crop.cfg new file mode 100644 index 000000000..6020056e8 --- /dev/null +++ b/testdata/dnn/darknet/crop.cfg @@ -0,0 +1,13 @@ +[net] +batch=1 +channels=3 +height=5 +width=6 + +[crop] +crop_height=2 +crop_width=3 +flip=1 +exposure=1 +saturation=1 +angle=0 diff --git a/testdata/dnn/darknet/crop_in.npy b/testdata/dnn/darknet/crop_in.npy new file mode 100644 index 000000000..06478c7b7 Binary files /dev/null and b/testdata/dnn/darknet/crop_in.npy differ diff --git a/testdata/dnn/darknet/crop_out.npy b/testdata/dnn/darknet/crop_out.npy new file mode 100644 index 000000000..0b7009190 Binary files /dev/null and b/testdata/dnn/darknet/crop_out.npy differ diff --git a/testdata/dnn/darknet/generate_darknet_models.py b/testdata/dnn/darknet/generate_darknet_models.py index 9a38a3cf6..065ecfe46 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, 2, 3])