Hello,
I am trying to create my own custom dataset for the training of the model efficientdet_lite3, but when I run this code (The data csv file has the same format as the one specified on this link Object Detection with TensorFlow Lite Model Maker):
train_data, validation_data, test_data = object_detector.DataLoader.from_csv(‘data.csv’)
The error that i get from the above code:
Traceback (most recent call last):
File “”, line 1, in
File “/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_umd.py”, line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File “/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py”, line 18, in execfile
exec(compile(contents+“\n”, file, ‘exec’), glob, loc)
File “/Users/maryam/PycharmProjects/sp/newmodel.py”, line 23, in
train_data, validation_data, test_data = object_detector.DataLoader.from_csv(‘data.csv’)
File “/Users/maryam/PycharmProjects/sp/venv/lib/python3.8/site-packages/tensorflow_examples/lite/model_maker/core/data_util/object_detector_dataloader.py”, line 292, in from_csv
cache_writer.write_files(cache_files, csv_lines=csv_lines)
File “/Users/maryam/PycharmProjects/sp/venv/lib/python3.8/site-packages/tensorflow_examples/lite/model_maker/core/data_util/object_detector_dataloader_util.py”, line 247, in write_files
for idx, xml_dict in enumerate(self._get_xml_dict(*args, **kwargs)):
File “/Users/maryam/PycharmProjects/sp/venv/lib/python3.8/site-packages/tensorflow_examples/lite/model_maker/core/data_util/object_detector_dataloader_util.py”, line 380, in _get_xml_dict
xml_dict = _get_xml_dict_from_csv_lines(self.images_dir, image_filename,
File “/Users/maryam/PycharmProjects/sp/venv/lib/python3.8/site-packages/tensorflow_examples/lite/model_maker/core/data_util/object_detector_dataloader_util.py”, line 337, in _get_xml_dict_from_csv_lines
xmin, ymin = float(line[3]) * width, float(line[4]) * height
ValueError: could not convert string to float: ‘’
Is there a possible answer for this problem?
Thank you