train_data = object_detector.DataLoader.from_pascal_voc(
'images_jpg_splitted/train/img',
'images_jpg_splitted/train/xml',
['bat']
)
val_data = object_detector.DataLoader.from_pascal_voc(
'images_jpg_splitted/test/img',
'images_jpg_splitted/test/xml',
['bat']
)
I am trying to detect bat from images. I have labeled the data using labelImg.
While trying to load the data from tflite_model_maker, object_detector.DataLoader.from_pascal_voc returns empty data. I have tried not splitting the image and XML file and it still did not work.
could you please write the code in below style?
dataloader = object_detector.DataLoader.from_pascal_voc(image_dir, annotations_dir, label_map={1: "person", 2: "notperson"})
It may be a syntax issue.
object_detector.DataLoader.from_pascal_voc returning empty data