You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the code, row 333 in object_detection_2d_data_generator.py casues the following error:
ValueError: invalid literal for int() with base 10: '1.png'
The text was updated successfully, but these errors were encountered:
When running the code, row 333 in object_detection_2d_data_generator.py casues the following error:
ValueError: invalid literal for int() with base 10: '1.png'
this is because convert json_to_pascal function is saving the data in different order, you must change it like :class_id fname xmax xmin ymax ymin or i changed the order saving in the function like :
for j in range(len(i['labels'])):
pascal_list.append({'class_id': int(i['labels'][j]),'fname': i['filename']
,'xmax': int(i['left'][j]+i['width'][j]), 'xmin': int(i['left'][j])
,'ymax': int(i['top'][j]+i['height'][j]),'ymin': int(i['top'][j])
})
When running the code, row 333 in object_detection_2d_data_generator.py casues the following error:
ValueError: invalid literal for int() with base 10: '1.png'
The text was updated successfully, but these errors were encountered: