@Gi_T Dataloader for object detection doesn’t support split for now. We will add an error message if users call the split function first to avoid misleading. We will consider adding this function later.
As for now, If you’d like to split the data into train_data and valdation_data, you need to set annotation_filenames parameter in the from_pascal_voc function (api 8) to specify which annotation files to be used. For instance, if you have annotation files: 1.xml, 2.xml, 3.xml. You can use
train_dataloader = object_detector.DataLoader.from_pascal_voc(..., annotation_filenames=['1', '2'])
validation_dataloader = object_detector.DataLoader.from_pascal_voc(..., annotation_filenames=['3'])