-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathtestAllScripts.sh
More file actions
executable file
·294 lines (260 loc) · 25.2 KB
/
testAllScripts.sh
File metadata and controls
executable file
·294 lines (260 loc) · 25.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
#!/bin/bash
cwd=$(pwd)
if [ -d build ];then
sudo rm -rf ./build/*
else
mkdir build
fi
cd build || exit
cmake ..
make -j"$(nproc)"
if [[ $ROCAL_DATA_PATH == "" ]]
then
echo "Need to export ROCAL_DATA_PATH"
exit
fi
# Path to inputs and outputs
image_path=${ROCAL_DATA_PATH}/rocal_data/coco/coco_10_img/images/
coco_detection_path=${ROCAL_DATA_PATH}/rocal_data/coco/coco_10_img/images/
coco_keypoints_path=${ROCAL_DATA_PATH}/rocal_data/coco/coco_10_img_keypoints/person_keypoints_10images_val2017/
tf_classification_path=${ROCAL_DATA_PATH}/rocal_data/tf/classification/
tf_detection_path=${ROCAL_DATA_PATH}/rocal_data/tf/detection/
tf_raw_classification_path=${ROCAL_DATA_PATH}/rocal_data/tf/raw/
caffe_classification_path=${ROCAL_DATA_PATH}/rocal_data/caffe/classification/
caffe_detection_path=${ROCAL_DATA_PATH}/rocal_data/caffe/detection/
caffe2_classification_path=${ROCAL_DATA_PATH}/rocal_data/caffe2/classification/
caffe2_detection_path=${ROCAL_DATA_PATH}/rocal_data/caffe2/detection/
mxnet_path=${ROCAL_DATA_PATH}/rocal_data/mxnet/
output_path=../rocal_unittest_output_folder_$(date +%Y-%m-%d_%H-%M-%S)/
golden_output_path=${ROCAL_DATA_PATH}/rocal_data/GoldenOutputsTensor/
webdataset_tar_path=${ROCAL_DATA_PATH}/rocal_data/web_dataset/tar_file/
numpy_data_path=${ROCAL_DATA_PATH}/rocal_data/numpy/
display=0
device=0
width=416
height=416
device_name="host"
rgb_name=("gray" "rgb")
rgb=1
dev_start=0
dev_end=1
rgb_start=0
rgb_end=1
memcpy_backend=0
output_layout=0
reverse_channels=0
if [ "$#" -gt 0 ]; then
if [ "$1" -eq 0 ]; then # For only HOST backend
dev_start=0
dev_end=0
elif [ "$1" -eq 1 ]; then # For only HIP backend
dev_start=1
dev_end=1
elif [ "$1" -eq 2 ]; then # For both HOST and HIP backend
dev_start=0
dev_end=1
fi
fi
if [ "$#" -gt 1 ]; then
if [ "$2" -eq 0 ]; then # For only Greyscale inputs
rgb_start=0
rgb_end=0
elif [ "$2" -eq 1 ]; then # For only RGB inputs
rgb_start=1
rgb_end=1
elif [ "$2" -eq 2 ]; then # For both RGB and Greyscale inputs
rgb_start=0
rgb_end=1
fi
fi
mkdir "$output_path"
for ((device=dev_start;device<=dev_end;device++))
do
if [ $device -eq 1 ]
then
device_name="hip"
echo "Running HIP Backend..."
else
echo "Running HOST Backend..."
fi
for ((rgb=rgb_start;rgb<=rgb_end;rgb++))
do
# FileSource Reader
./unit_tests 0 "$image_path" "${output_path}LensCorrection_${rgb_name[$rgb]}_${device_name}" $width $height 18 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}Exposure_${rgb_name[$rgb]}_${device_name}" $width $height 46 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}Flip_${rgb_name[$rgb]}_${device_name}" $width $height 47 $device $rgb 0 $display
# FileSource Reader + partial decoder
./unit_tests 1 "$image_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}_FileReader_partial" $width $height 41 $device $rgb 0 $display
./unit_tests 1 "$image_path" "${output_path}Rain_${rgb_name[$rgb]}_${device_name}_FileReader_partial" $width $height 42 $device $rgb 0 $display
./unit_tests 1 "$image_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}_FileReader_partial" $width $height 40 $device $rgb 0 $display
# coco detection
./unit_tests 2 "$coco_detection_path" "${output_path}Gamma_${rgb_name[$rgb]}_${device_name}" $width $height 33 $device $rgb 0 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Contrast_${rgb_name[$rgb]}_${device_name}" $width $height 34 $device $rgb 0 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Vignette_${rgb_name[$rgb]}_${device_name}" $width $height 38 $device $rgb 0 $display
# coco detection + partial decoder
./unit_tests 3 "$coco_detection_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}_coco_partial" $width $height 41 $device $rgb 0 $display
./unit_tests 3 "$coco_detection_path" "${output_path}Rain_${rgb_name[$rgb]}_${device_name}_coco_partial" $width $height 42 $device $rgb 0 $display
./unit_tests 3 "$coco_detection_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}_coco_partial" $width $height 40 $device $rgb 0 $display
# tf classification
./unit_tests 4 "$tf_classification_path" "${output_path}Hue_${rgb_name[$rgb]}_${device_name}" $width $height 48 $device $rgb 0 $display
./unit_tests 4 "$tf_classification_path" "${output_path}Saturation_${rgb_name[$rgb]}_${device_name}" $width $height 49 $device $rgb 0 $display
./unit_tests 4 "$tf_classification_path" "${output_path}ColorTwist_${rgb_name[$rgb]}_${device_name}" $width $height 50 $device $rgb 0 $display
# tf detection
./unit_tests 5 "$tf_detection_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}" $width $height 40 $device $rgb 0 $display
./unit_tests 5 "$tf_detection_path" "${output_path}ColorTemp_${rgb_name[$rgb]}_${device_name}" $width $height 43 $device $rgb 0 $display
./unit_tests 5 "$tf_detection_path" "${output_path}Fog_${rgb_name[$rgb]}_${device_name}" $width $height 44 $device $rgb 0 $display
# caffe classification
./unit_tests 6 "$caffe_classification_path" "${output_path}Rotate_${rgb_name[$rgb]}_${device_name}" $width $height 31 $device $rgb 0 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}Brightness_${rgb_name[$rgb]}_${device_name}" $width $height 32 $device $rgb 0 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}Blend_${rgb_name[$rgb]}_${device_name}" $width $height 36 $device $rgb 0 $display
# caffe detection
./unit_tests 7 "$caffe_detection_path" "${output_path}WarpAffine_${rgb_name[$rgb]}_${device_name}" $width $height 37 $device $rgb 0 $display
./unit_tests 7 "$caffe_detection_path" "${output_path}Blur_${rgb_name[$rgb]}_${device_name}" $width $height 7 $device $rgb 0 $display
./unit_tests 7 "$caffe_detection_path" "${output_path}Rain_${rgb_name[$rgb]}_${device_name}" $width $height 42 $device $rgb 0 $display
# caffe2 classification
./unit_tests 8 "$caffe2_classification_path" "${output_path}CropCenter_${rgb_name[$rgb]}_${device_name}" $width $height 52 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}ResizeCropMirror_${rgb_name[$rgb]}_${device_name}" $width $height 53 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}" $width $height 41 $device $rgb 0 $display
# caffe2 detection
./unit_tests 9 "$caffe2_detection_path" "${output_path}FishEye_${rgb_name[$rgb]}_${device_name}" $width $height 10 $device $rgb 0 $display
./unit_tests 9 "$caffe2_detection_path" "${output_path}Pixelate_${rgb_name[$rgb]}_${device_name}" $width $height 19 $device $rgb 0 $display
./unit_tests 9 "$caffe2_detection_path" "${output_path}CropCenterCMN_${rgb_name[$rgb]}_${device_name}" $width $height 55 $device $rgb 0 $display
# COCO Keypoints
./unit_tests 10 "$coco_keypoints_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}" 640 480 14 $device $rgb 0 $display
./unit_tests 10 "$coco_keypoints_path" "${output_path}Rain_${rgb_name[$rgb]}_${device_name}" 640 480 15 $device $rgb 0 $display
./unit_tests 10 "$coco_keypoints_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}" 640 480 41 $device $rgb 0 $display
# mxnet
./unit_tests 11 "$mxnet_path" "${output_path}Jitter_${rgb_name[$rgb]}_${device_name}" $width $height 39 $device $rgb 0 $display
./unit_tests 11 "$mxnet_path" "${output_path}Pixelate_${rgb_name[$rgb]}_${device_name}" $width $height 19 $device $rgb 0 $display
./unit_tests 11 "$mxnet_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_mxnet" $width $height 25 $device $rgb 0 $display
# Webdataset
./unit_tests 12 "$webdataset_tar_path" "${output_path}Normalize_${rgb_name[$rgb]}_${device_name}" $width $height 57 $device $rgb 0 $display
./unit_tests 12 "$webdataset_tar_path" "${output_path}Transpose_${rgb_name[$rgb]}_${device_name}" $width $height 58 $device $rgb 0 $display
# CMN
./unit_tests 0 "$image_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_FileReader" $width $height 25 $device $rgb 0 $display
./unit_tests 2 "$coco_detection_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_coco" $width $height 25 $device $rgb 0 $display
./unit_tests 4 "$tf_classification_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_tfClassification" $width $height 25 $device $rgb 0 $display
./unit_tests 5 "$tf_detection_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_tfDetection" $width $height 25 $device $rgb 0 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_caffeClassification" $width $height 25 $device $rgb 0 $display
./unit_tests 7 "$caffe_detection_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_caffeDetection" $width $height 25 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_caffe2Classification" $width $height 25 $device $rgb 0 $display
./unit_tests 9 "$caffe2_detection_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_caffe2Detection" $width $height 25 $device $rgb 0 $display
./unit_tests 11 "$mxnet_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_mxnet" $width $height 25 $device $rgb 0 $display
./unit_tests 12 "$webdataset_tar_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_webdataset" $width $height 25 $device $rgb 0 $display
./unit_tests 13 "$numpy_data_path" "${output_path}CropMirrorNormalize_${rgb_name[$rgb]}_${device_name}_numpy" $width $height 25 $device $rgb 0 $display
# crop
./unit_tests 0 "$image_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_FileReader" $width $height 51 $device $rgb 0 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_coco" $width $height 51 $device $rgb 0 $display
./unit_tests 4 "$tf_classification_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_tfClassification" $width $height 51 $device $rgb 0 $display
./unit_tests 5 "$tf_detection_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_tfDetection" $width $height 51 $device $rgb 0 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_caffeClassification" $width $height 51 $device $rgb 0 $display
./unit_tests 7 "$caffe_detection_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_caffeDetection" $width $height 51 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_caffe2Classification" $width $height 51 $device $rgb 0 $display
./unit_tests 9 "$caffe2_detection_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_caffe2Detection" $width $height 51 $device $rgb 0 $display
./unit_tests 11 "$mxnet_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_mxnet" $width $height 51 $device $rgb 0 $display
./unit_tests 12 "$webdataset_tar_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_webdataset" $width $height 51 $device $rgb 0 $display
./unit_tests 13 "$numpy_data_path" "${output_path}Crop_${rgb_name[$rgb]}_${device_name}_numpy" $width $height 51 $device $rgb 0 $display
# resize
# Last two parameters are interpolation type and scaling mode
./unit_tests 0 "$image_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_bilinear_default_FileReader" $width $height 0 $device $rgb 0 $display 1 0
./unit_tests 2 "$coco_detection_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_bilinear_stretch_coco" $width $height 0 $device $rgb 0 $display 1 1
./unit_tests 4 "$tf_classification_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_bilinear_notsmaller_tfClassification" $width $height 0 $device $rgb 0 $display 1 2
./unit_tests 5 "$tf_detection_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_bilinear_notlarger_tfDetection" $width $height 0 $device $rgb 0 $display 1 3
./unit_tests 6 "$caffe_classification_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_bicubic_default_caffeClassification" $width $height 0 $device $rgb 0 $display 2 0
./unit_tests 7 "$caffe_detection_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_nearestneighbor_default_caffeDetection" $width $height 0 $device $rgb 0 $display 0 0
./unit_tests 8 "$caffe2_classification_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_lanczos_default_caffe2Classification" $width $height 0 $device $rgb 0 $display 3 0
./unit_tests 9 "$caffe2_detection_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_triangular_default_caffe2Detection" $width $height 0 $device $rgb 0 $display 5 0
./unit_tests 11 "$mxnet_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_gaussian_default_mxnet" $width $height 0 $device $rgb 0 $display 4 0
./unit_tests 12 "$webdataset_tar_path" "${output_path}Resize_${rgb_name[$rgb]}_${device_name}_triangular_notsmaller_webdataset" $width $height 0 $device $rgb 0 $display 5 2
# code coverage tests
./unit_tests 14 "$image_path" "${output_path}BrightnessRandom_${rgb_name[$rgb]}_${device_name}" $width $height 3 $device $rgb 1 $display
./unit_tests 15 "$coco_detection_path" "${output_path}FlipRandom_${rgb_name[$rgb]}_${device_name}" $width $height 6 $device $rgb 1 $display
./unit_tests 15 "$coco_detection_path" "${output_path}RotateRandom_${rgb_name[$rgb]}_${device_name}" $width $height 2 $device $rgb 1 $display
./unit_tests 16 "$coco_keypoints_path" "${output_path}ResizeMirrorNormalizeRandom_${rgb_name[$rgb]}_${device_name}" $width $height 56 $device $rgb 1 $display
./unit_tests 17 "$caffe_classification_path" "${output_path}GammaRandom_${rgb_name[$rgb]}_${device_name}" $width $height 4 $device $rgb 1 $display
./unit_tests 18 "$caffe2_classification_path" "${output_path}ContrastRandom_${rgb_name[$rgb]}_${device_name}" $width $height 5 $device $rgb 1 $display
./unit_tests 19 "$mxnet_path" "${output_path}BlurRandom_${rgb_name[$rgb]}_${device_name}" $width $height 7 $device $rgb 1 $display
./unit_tests 20 "$numpy_data_path" "${output_path}BlendRandom_${rgb_name[$rgb]}_${device_name}" $width $height 8 $device $rgb 1 $display
./unit_tests 21 "$image_path" "${output_path}WarpAffineRandom_${rgb_name[$rgb]}_${device_name}" $width $height 9 $device $rgb 1 $display
./unit_tests 22 "$caffe_classification_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}" $width $height 13 $device $rgb 1 $display
./unit_tests 23 "$caffe2_classification_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}" $width $height 14 $device $rgb 1 $display
./unit_tests 24 "$tf_classification_path" "${output_path}Rain_${rgb_name[$rgb]}_${device_name}" $width $height 15 $device $rgb 1 $display
./unit_tests 25 "$webdataset_tar_path" "${output_path}FogRandom_${rgb_name[$rgb]}_${device_name}" $width $height 17 $device $rgb 1 $display
./unit_tests 26 "$coco_detection_path" "${output_path}CropResizeRandom_${rgb_name[$rgb]}_${device_name}" $width $height 1 $device $rgb 1 $display
./unit_tests 27 "$tf_raw_classification_path" "${output_path}Snow_${rgb_name[$rgb]}_${device_name}_tfraw" $width $height 41 $device $rgb 0 $display
./unit_tests 28 "$tf_raw_classification_path" "${output_path}SNPNoise_${rgb_name[$rgb]}_${device_name}_tfraw" $width $height 40 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}RandomResizedCrop_${rgb_name[$rgb]}_${device_name}" $width $height 63 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}ExposureRandom_${rgb_name[$rgb]}_${device_name}" $width $height 20 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}HueRandom_${rgb_name[$rgb]}_${device_name}" $width $height 21 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}SaturationRandom_${rgb_name[$rgb]}_${device_name}" $width $height 22 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}ColorTwistRandom_${rgb_name[$rgb]}_${device_name}" $width $height 24 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}VignetteRandom_${rgb_name[$rgb]}_${device_name}" $width $height 11 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}JitterRandom_${rgb_name[$rgb]}_${device_name}" $width $height 12 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}ColorTempRandom_${rgb_name[$rgb]}_${device_name}" $width $height 16 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}CropRandom_${rgb_name[$rgb]}_${device_name}" $width $height 26 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}ResizeCropMirrorRandom_${rgb_name[$rgb]}_${device_name}" $width $height 27 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}CropResize_${rgb_name[$rgb]}_${device_name}" $width $height 30 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}SSDRandomCrop_${rgb_name[$rgb]}_${device_name}" $width $height 54 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}RandomCrop_${rgb_name[$rgb]}_${device_name}" $width $height 59 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}ROIResize_${rgb_name[$rgb]}_${device_name}" $width $height 60 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Nop_${rgb_name[$rgb]}_${device_name}" $width $height 61 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}ResizeMirrorNormalize_${rgb_name[$rgb]}_${device_name}" $width $height 56 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}ColorCastRandom_${rgb_name[$rgb]}_${device_name}" $width $height 64 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}ColorCast_${rgb_name[$rgb]}_${device_name}" $width $height 65 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}GridMask_${rgb_name[$rgb]}_${device_name}" $width $height 66 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}NonLinearBlendRandom_${rgb_name[$rgb]}_${device_name}" $width $height 67 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}NonLinearBlend_${rgb_name[$rgb]}_${device_name}" $width $height 68 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}MedianFilter_${rgb_name[$rgb]}_${device_name}" $width $height 69 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}GaussianFilterRandom_${rgb_name[$rgb]}_${device_name}" $width $height 70 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}GaussianFilter_${rgb_name[$rgb]}_${device_name}" $width $height 71 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Dilate_${rgb_name[$rgb]}_${device_name}" $width $height 72 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Erode_${rgb_name[$rgb]}_${device_name}" $width $height 73 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Magnitude_${rgb_name[$rgb]}_${device_name}" $width $height 74 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Phase_${rgb_name[$rgb]}_${device_name}" $width $height 75 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Threshold_${rgb_name[$rgb]}_${device_name}" $width $height 76 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}WarpPerspective_${rgb_name[$rgb]}_${device_name}" $width $height 77 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Remap_${rgb_name[$rgb]}_${device_name}" $width $height 78 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}CropAndPatch_${rgb_name[$rgb]}_${device_name}" $width $height 79 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Ricap_${rgb_name[$rgb]}_${device_name}" $width $height 80 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}BitwiseAnd_${rgb_name[$rgb]}_${device_name}" $width $height 81 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}BitwiseOr_${rgb_name[$rgb]}_${device_name}" $width $height 82 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}BitwiseXor_${rgb_name[$rgb]}_${device_name}" $width $height 83 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}BitwiseNot_${rgb_name[$rgb]}_${device_name}" $width $height 84 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}Erase_${rgb_name[$rgb]}_${device_name}" $width $height 85 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}GaussianNoiseRandom_${rgb_name[$rgb]}_${device_name}" $width $height 86 $device $rgb 1 $display
./unit_tests 4 "$tf_classification_path" "${output_path}ShotNoiseRandom_${rgb_name[$rgb]}_${device_name}" $width $height 88 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}SpatterRandom_${rgb_name[$rgb]}_${device_name}" $width $height 90 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}Log_${rgb_name[$rgb]}_${device_name}" $width $height 92 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}ColorJitterRandom_${rgb_name[$rgb]}_${device_name}" $width $height 93 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}WaterRandom_${rgb_name[$rgb]}_${device_name}" $width $height 95 $device $rgb 1 $display
./unit_tests 2 "$coco_detection_path" "${output_path}GaussianNoise_${rgb_name[$rgb]}_${device_name}" $width $height 87 $device $rgb 0 $display
./unit_tests 4 "$tf_classification_path" "${output_path}ShotNoise_${rgb_name[$rgb]}_${device_name}" $width $height 89 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}Spatter_${rgb_name[$rgb]}_${device_name}" $width $height 91 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}ColorJitter_${rgb_name[$rgb]}_${device_name}" $width $height 94 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}Water_${rgb_name[$rgb]}_${device_name}" $width $height 96 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}ChannelPermute_${rgb_name[$rgb]}_${device_name}" $width $height 97 $device $rgb 1 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}JpegCompressionDistortionRandom_${rgb_name[$rgb]}_${device_name}" $width $height 98 $device $rgb 1 $display
./unit_tests 11 "$mxnet_path" "${output_path}LUT_${rgb_name[$rgb]}_${device_name}" $width $height 100 $device $rgb 1 $display
./unit_tests 14 "$image_path" "${output_path}PosterizeRandom_${rgb_name[$rgb]}_${device_name}" $width $height 101 $device $rgb 1 $display
./unit_tests 15 "$coco_detection_path" "${output_path}SolarizeRandom_${rgb_name[$rgb]}_${device_name}" $width $height 103 $device $rgb 1 $display
./unit_tests 0 "$image_path" "${output_path}ColorToGreyscale_${rgb_name[$rgb]}_${device_name}" $width $height 105 $device $rgb 0 $display
./unit_tests 6 "$caffe_classification_path" "${output_path}JpegCompressionDistortion_${rgb_name[$rgb]}_${device_name}" $width $height 99 $device $rgb 0 $display
./unit_tests 8 "$caffe2_classification_path" "${output_path}Posterize_${rgb_name[$rgb]}_${device_name}" $width $height 102 $device $rgb 0 $display
./unit_tests 11 "$mxnet_path" "${output_path}Solarize_${rgb_name[$rgb]}_${device_name}" $width $height 104 $device $rgb 0 $display
./unit_tests 0 "$image_path" "${output_path}TensorReduction_${rgb_name[$rgb]}_${device_name}" $width $height 106 $device $rgb 0 $display
# to_tensor coverage tests
for ((memcpy_backend=0;memcpy_backend<=1;memcpy_backend++))
do
for ((output_layout=0;output_layout<=1;output_layout++))
do
for ((reverse_channels=0;reverse_channels<=1;reverse_channels++))
do
./unit_tests 0 "$image_path" "${output_path}Copy_${rgb_name[$rgb]}_${device_name}" $width $height 23 $device $rgb 1 $display 1 0 $memcpy_backend $output_layout $reverse_channels
done
done
done
done
done
pwd
# Run python script to compare rocAL outputs with golden ouptuts
python3 "$cwd"/pixel_comparison/image_comparison.py "$golden_output_path" "$output_path"