I am trying to convert KITTI dataset to TFrecords, converter throwing out an error, any pointers?
Total number images 640818
root@24dfc5c16956:/workspace/tlt_model# tlt-dataset-convert -d kitti_car -o hello/test
Using TensorFlow backend.
2019-10-20 10:10:08,770 - iva.detectnet_v2.dataio.build_converter - INFO - Instantiating a kitti converter
2019-10-20 10:10:09,905 - iva.detectnet_v2.dataio.kitti_converter_lib - INFO - Num images in
Train: 90548 Val: 22637
2019-10-20 10:10:09,906 - iva.detectnet_v2.dataio.kitti_converter_lib - INFO - Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2019-10-20 10:10:09,956 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 0
Traceback (most recent call last):
File "/usr/local/bin/tlt-dataset-convert", line 10, in <module>
sys.exit(main())
File "./detectnet_v2/scripts/dataset_convert.py", line 64, in main
File "./detectnet_v2/dataio/dataset_converter_lib.py", line 74, in convert
File "./detectnet_v2/dataio/dataset_converter_lib.py", line 108, in _write_partitions
File "./detectnet_v2/dataio/dataset_converter_lib.py", line 149, in _write_shard
File "./detectnet_v2/dataio/kitti_converter_lib.py", line 169, in _create_example_proto
File "./detectnet_v2/dataio/kitti_converter_lib.py", line 272, in _add_targets
TypeError: object of type 'int' has no len()
Hi RaviKiranK,
Firstly, from the tlt doc, for the SSD and DetectNet_v2 apps, as mentioned in Data input for object detection, require KITTI format data to be converted to TFRecords.
The sum of the total number of elements per object is 15.The kitti format looks like this. Here is a sample text file:
car 0.00 0 -1.58 587.01 173.33 614.12 200.12 1.65 1.67 3.64 -0.65 1.71 46.70 -1.59
But yours is as below.
cat CAR123_roi_2.txt
1 176 1 242 77
So, could you please change to kitti format? Thanks.
Hi RaviKiranK,
Sorry,the “tlt-dataset-convert” does not support mixed extension format. You can transfer one kind of extension to another in order to unify the image format.