Database collection error

I have followed the steps in Hello AI World to collect my own dataset. Now I am trying to train it but it crashes with this error.
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
Does anybody know why??

Hi,

The error occurs when the PyTorch parses the database file.
Please check if you follow the data format listed in our tutorial.

For example, here is the format for the classification label:

Thanks.

Hi @cespedesk, I take it that you are training a detection model. Are there any warnings printed out before it crashes? Like ‘warning - failed to find any bounding boxes for image xyz’ or similar.

You can better determine which image is causing the error by uncommenting this line of code:

If you can’t find the source of the error, you can upload your dataset to Google Drive (or similar) and I can give it a try here to find the issue.

My bad wrote label instead of labels. It took me 4 days to realized it.