Hello, thanks for the excellent documentation, I managed to follow the tutorial for training the grocery data set, however, on trying for my own custom data set, after running script 1 to generate InputROI I get the following error, what could the problem be?
########OUTPUT AFTER RUNNING python3 A1_GenerateInputROIs.py##########
2017-07-05 15:43:55
PARAMETERS: datasetName = CustomDataset
PARAMETERS: cntk_nrRois = 100
0 8 positive positive1.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 233
Number of rois on grid added: 82528
Number of rectangles before filtering = 82761
Number of rectangles after filtering = 3214
Time [ms]: 865.871
1 8 positive positive10.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 256
Number of rois on grid added: 82528
Number of rectangles before filtering = 82784
Number of rectangles after filtering = 3204
Time [ms]: 960.8330000000001
2 8 positive positive2.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 179
Number of rois on grid added: 82528
Number of rectangles before filtering = 82707
Number of rectangles after filtering = 3195
Time [ms]: 730.7620000000001
3 8 positive positive3.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 235
Number of rois on grid added: 82528
Number of rectangles before filtering = 82763
Number of rectangles after filtering = 3211
Time [ms]: 856.526
4 8 positive positive4.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 229
Number of rois on grid added: 82528
Number of rectangles before filtering = 82757
Number of rectangles after filtering = 3206
Time [ms]: 865.3499999999999
5 8 positive positive5.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 217
Number of rois on grid added: 82528
Number of rectangles before filtering = 82745
Number of rectangles after filtering = 3197
Time [ms]: 832.217
6 8 positive positive6.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 209
Number of rois on grid added: 82528
Number of rectangles before filtering = 82737
Number of rectangles after filtering = 3197
Time [ms]: 848.626
7 8 positive positive8.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 248
Number of rois on grid added: 82528
Number of rectangles before filtering = 82776
Number of rectangles after filtering = 3215
Time [ms]: 883.081
0 2 testImages positive7.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 281
Number of rois on grid added: 82528
Number of rectangles before filtering = 82809
Number of rectangles after filtering = 3234
Time [ms]: 946.5930000000001
1 2 testImages positive9.jpg
1024 768
Calling selective search..
Number of rois detected using selective search: 222
Number of rois on grid added: 82528
Number of rectangles before filtering = 82750
Number of rectangles after filtering = 3215
Time [ms]: 877.404
0 5 negative 1.jpg
640 426
Calling selective search..
Number of rois detected using selective search: 198
Number of rois on grid added: 93360
Number of rectangles before filtering = 93558
Number of rectangles after filtering = 3540
Time [ms]: 803.014
1 5 negative 2.jpg
1200 800
Calling selective search..
Number of rois detected using selective search: 157
Number of rois on grid added: 93360
Number of rectangles before filtering = 93517
Number of rectangles after filtering = 3562
Time [ms]: 733.409
2 5 negative 3.jpg
1024 683
Calling selective search..
Number of rois detected using selective search: 227
Number of rois on grid added: 93360
Number of rectangles before filtering = 93587
Number of rectangles after filtering = 3595
Time [ms]: 784.492
3 5 negative 4.jpg
1024 683
Calling selective search..
Number of rois detected using selective search: 218
Number of rois on grid added: 93360
Number of rectangles before filtering = 93578
Number of rectangles after filtering = 3567
Time [ms]: 853.417
4 5 negative 5.jpg
Calling selective search..
Number of rois detected using selective search: 429
Number of rois on grid added: 66276
Number of rectangles before filtering = 66705
Number of rectangles after filtering = 3569
Time [ms]: 1389.256
--> INPUT: Press "y" to delete directory C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\proc\CustomDataset_100\cntkFiles: y
Number of images in set train = 13
Processing image set 'train', image 0 of 13
Traceback (most recent call last):
File "A1_GenerateInputROIs.py", line 152, in
generate_input_rois()
File "A1_GenerateInputROIs.py", line 116, in generate_input_rois
currBoxes = imdb.roidb[imgIndex]['boxes']
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\fastRCNN\imdb.py", line 65, in roidb
self._roidb = self.roidb_handler()
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 108, in selective_search_roidb
gt_roidb = self.gt_roidb()
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 81, in gt_roidb
gt_roidb = [self._load_annotation(i) for i in range(self.num_images)]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 81, in
gt_roidb = [self._load_annotation(i) for i in range(self.num_images)]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 165, in _load_annotation
bboxes = [bboxes[i] for i in indicesToKeep]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 165, in
bboxes = [bboxes[i] for i in indicesToKeep]
IndexError: index 3 is out of bounds for axis 0 with size 3
Hello, thanks for the excellent documentation, I managed to follow the tutorial for training the grocery data set, however, on trying for my own custom data set, after running script 1 to generate InputROI I get the following error, what could the problem be?
########OUTPUT AFTER RUNNING python3 A1_GenerateInputROIs.py##########
C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN>python3 A1_GenerateInputROIs.py
2017-07-05 15:43:55 PARAMETERS: datasetName = CustomDataset PARAMETERS: cntk_nrRois = 100 0 8 positive positive1.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 233 Number of rois on grid added: 82528 Number of rectangles before filtering = 82761 Number of rectangles after filtering = 3214 Time [ms]: 865.871 1 8 positive positive10.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 256 Number of rois on grid added: 82528 Number of rectangles before filtering = 82784 Number of rectangles after filtering = 3204 Time [ms]: 960.8330000000001 2 8 positive positive2.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 179 Number of rois on grid added: 82528 Number of rectangles before filtering = 82707 Number of rectangles after filtering = 3195 Time [ms]: 730.7620000000001 3 8 positive positive3.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 235 Number of rois on grid added: 82528 Number of rectangles before filtering = 82763 Number of rectangles after filtering = 3211 Time [ms]: 856.526 4 8 positive positive4.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 229 Number of rois on grid added: 82528 Number of rectangles before filtering = 82757 Number of rectangles after filtering = 3206 Time [ms]: 865.3499999999999 5 8 positive positive5.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 217 Number of rois on grid added: 82528 Number of rectangles before filtering = 82745 Number of rectangles after filtering = 3197 Time [ms]: 832.217 6 8 positive positive6.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 209 Number of rois on grid added: 82528 Number of rectangles before filtering = 82737 Number of rectangles after filtering = 3197 Time [ms]: 848.626 7 8 positive positive8.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 248 Number of rois on grid added: 82528 Number of rectangles before filtering = 82776 Number of rectangles after filtering = 3215 Time [ms]: 883.081 0 2 testImages positive7.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 281 Number of rois on grid added: 82528 Number of rectangles before filtering = 82809 Number of rectangles after filtering = 3234 Time [ms]: 946.5930000000001 1 2 testImages positive9.jpg 1024 768 Calling selective search.. Number of rois detected using selective search: 222 Number of rois on grid added: 82528 Number of rectangles before filtering = 82750 Number of rectangles after filtering = 3215 Time [ms]: 877.404 0 5 negative 1.jpg 640 426 Calling selective search.. Number of rois detected using selective search: 198 Number of rois on grid added: 93360 Number of rectangles before filtering = 93558 Number of rectangles after filtering = 3540 Time [ms]: 803.014 1 5 negative 2.jpg 1200 800 Calling selective search.. Number of rois detected using selective search: 157 Number of rois on grid added: 93360 Number of rectangles before filtering = 93517 Number of rectangles after filtering = 3562 Time [ms]: 733.409 2 5 negative 3.jpg 1024 683 Calling selective search.. Number of rois detected using selective search: 227 Number of rois on grid added: 93360 Number of rectangles before filtering = 93587 Number of rectangles after filtering = 3595 Time [ms]: 784.492 3 5 negative 4.jpg 1024 683 Calling selective search.. Number of rois detected using selective search: 218 Number of rois on grid added: 93360 Number of rectangles before filtering = 93578 Number of rectangles after filtering = 3567 Time [ms]: 853.417 4 5 negative 5.jpg Calling selective search.. Number of rois detected using selective search: 429 Number of rois on grid added: 66276 Number of rectangles before filtering = 66705 Number of rectangles after filtering = 3569 Time [ms]: 1389.256 --> INPUT: Press "y" to delete directory C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\proc\CustomDataset_100\cntkFiles: y Number of images in set train = 13 Processing image set 'train', image 0 of 13 Traceback (most recent call last): File "A1_GenerateInputROIs.py", line 152, in
generate_input_rois()
File "A1_GenerateInputROIs.py", line 116, in generate_input_rois
currBoxes = imdb.roidb[imgIndex]['boxes']
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\fastRCNN\imdb.py", line 65, in roidb
self._roidb = self.roidb_handler()
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 108, in selective_search_roidb
gt_roidb = self.gt_roidb()
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 81, in gt_roidb
gt_roidb = [self._load_annotation(i) for i in range(self.num_images)]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 81, in
gt_roidb = [self._load_annotation(i) for i in range(self.num_images)]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 165, in _load_annotation
bboxes = [bboxes[i] for i in indicesToKeep]
File "C:\Users\ThinkPad X240\CNTK-Samples-2-0\Examples\Image\Detection\FastRCNN\imdb_data.py", line 165, in
bboxes = [bboxes[i] for i in indicesToKeep]
IndexError: index 3 is out of bounds for axis 0 with size 3