nicknochnack / TFODCourse

944 stars 920 forks source link

Child index out of range - TF records error #169

Open kvAkash-512 opened 2 months ago

kvAkash-512 commented 2 months ago

I get this error when running tfrecord generator on a data from roboflow

File "F:\Animal_detetction\Tensorflow Object Detection\TFODCourse\Tensorflow\scripts\generate_tfrecord.py", line 88, in xml_to_csv int(member[4][0].text),


IndexError: child index out of range
davemaster commented 2 months ago

You DON'T saw the creator of this generate_tfrecord.py video; check your annotations of each image, *.xml, THEN check in the class

imagen for example, in my annotation, my object (cat) has properties, but its needed the bndbox with the coordinates of our interests within the training image... so, instead 4, I putted 5 (FIVE)

Good luck, God bless you