Open jeomincham opened 4 years ago
Probably you have at least one image with a wrong xml annotation, you could use the __getitem__
function inside voc_dataset.py to look for it i.e.
if len(boxes) == 0:
print(image_id)
Edit: It can also happen when you have wrongly defined your label class/classes for your dataset
Hi, I use labelImg make and convert tothe VOC format, trained SSD-Mobilenet for my dataset , but In the transforms.py have some errors:
transforms/transforms.py", line 350, in __call__ boxes[:, :2] += (int(left), int(top)) IndexError: too many indices for array
and
transforms/transforms.py", line 15 max_xy = np.minimum(box_a[:, 2:], box_b[2:]) IndexError: too many indices for array