Sorry for misunderstanding. Below is the log for converting tfrecord:
2021-12-03 15:02:11,321 [INFO] root: Registry: ['nvcr.io']
2021-12-03 15:02:11,468 [INFO] tlt.components.instance_handler.local_instance: Running command in container: nvcr.io/nvidia/tao/tao-toolkit-tf:v3.21.11-tf1.15.5-py3
2021-12-03 15:02:11,724 [WARNING] tlt.components.docker_handler.docker_handler:
Docker will run the commands as root. If you would like to retain your
local host permissions, please add the "user":"UID:GID" in the
DockerOptions portion of the "/home/dwang/.tao_mounts.json" file. You can obtain your
users UID and GID by using the "id -u" and "id -g" commands on the
terminal.
Using TensorFlow backend.
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
Using TensorFlow backend.
2021-12-03 23:02:20,243 [INFO] iva.detectnet_v2.dataio.build_converter: Instantiating a kitti converter
2021-12-03 23:02:20,244 [INFO] root: Instantiating a kitti converter
2021-12-03 23:02:20,244 [INFO] root: Generating partitions
2021-12-03 23:02:20,535 [INFO] iva.detectnet_v2.dataio.kitti_converter_lib: Num images in
Train: 84396 Val: 13738
2021-12-03 23:02:20,535 [INFO] root: Num images in
Train: 84396 Val: 13738
2021-12-03 23:02:20,535 [INFO] iva.detectnet_v2.dataio.kitti_converter_lib: Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2021-12-03 23:02:20,535 [INFO] root: Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2021-12-03 23:02:20,619 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 0
2021-12-03 23:02:20,619 [INFO] root: Writing partition 0, shard 0
WARNING:tensorflow:From /root/.cache/bazel/_bazel_root/ed34e6d125608f91724fda23656f1726/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/detectnet_v2/dataio/dataset_converter_lib.py:161: The name tf.python_io.TFRecordWriter is deprecated. Please use tf.io.TFRecordWriter instead.
2021-12-03 23:02:20,619 [WARNING] tensorflow: From /root/.cache/bazel/_bazel_root/ed34e6d125608f91724fda23656f1726/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/detectnet_v2/dataio/dataset_converter_lib.py:161: The name tf.python_io.TFRecordWriter is deprecated. Please use tf.io.TFRecordWriter instead.
/usr/local/lib/python3.6/dist-packages/iva/detectnet_v2/dataio/kitti_converter_lib.py:297: VisibleDeprecationWarning: Reading unicode strings without specifying the encoding argument is deprecated. Set the encoding, use None for the system default.
2021-12-03 23:02:21,997 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 1
2021-12-03 23:02:21,997 [INFO] root: Writing partition 0, shard 1
2021-12-03 23:02:23,404 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 2
2021-12-03 23:02:23,404 [INFO] root: Writing partition 0, shard 2
2021-12-03 23:02:24,778 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 3
2021-12-03 23:02:24,778 [INFO] root: Writing partition 0, shard 3
2021-12-03 23:02:26,145 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 4
2021-12-03 23:02:26,145 [INFO] root: Writing partition 0, shard 4
2021-12-03 23:02:27,506 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 5
2021-12-03 23:02:27,507 [INFO] root: Writing partition 0, shard 5
2021-12-03 23:02:28,878 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 6
2021-12-03 23:02:28,878 [INFO] root: Writing partition 0, shard 6
2021-12-03 23:02:30,246 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 7
2021-12-03 23:02:30,246 [INFO] root: Writing partition 0, shard 7
2021-12-03 23:02:31,620 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 8
2021-12-03 23:02:31,620 [INFO] root: Writing partition 0, shard 8
2021-12-03 23:02:32,996 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 9
2021-12-03 23:02:32,996 [INFO] root: Writing partition 0, shard 9
2021-12-03 23:02:34,375 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'pedestrian': 8035
b'car': 97990
b'bicycle': 1842
b'workvan': 2135
b'trafficcone': 4623
b'pickuptruck': 5747
b'bus': 951
b'semitruck': 497
b'industrialvehicle': 520
b'schoolbus': 95
b'carwithtrailers': 151
b'motorcycle': 204
b'escooter': 22
b'wheelchair': 17
b'policecar': 34
b'fireengine': 10
b'ambulance': 13
2021-12-03 23:02:34,376 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 0
2021-12-03 23:02:34,376 [INFO] root: Writing partition 1, shard 0
2021-12-03 23:02:42,819 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 1
2021-12-03 23:02:42,819 [INFO] root: Writing partition 1, shard 1
2021-12-03 23:02:51,242 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 2
2021-12-03 23:02:51,243 [INFO] root: Writing partition 1, shard 2
2021-12-03 23:02:59,677 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 3
2021-12-03 23:02:59,677 [INFO] root: Writing partition 1, shard 3
2021-12-03 23:03:08,268 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 4
2021-12-03 23:03:08,268 [INFO] root: Writing partition 1, shard 4
2021-12-03 23:03:16,739 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 5
2021-12-03 23:03:16,739 [INFO] root: Writing partition 1, shard 5
2021-12-03 23:03:25,312 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 6
2021-12-03 23:03:25,312 [INFO] root: Writing partition 1, shard 6
2021-12-03 23:03:33,871 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 7
2021-12-03 23:03:33,871 [INFO] root: Writing partition 1, shard 7
2021-12-03 23:03:42,368 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 8
2021-12-03 23:03:42,368 [INFO] root: Writing partition 1, shard 8
2021-12-03 23:03:51,033 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 9
2021-12-03 23:03:51,033 [INFO] root: Writing partition 1, shard 9
2021-12-03 23:03:59,628 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'pedestrian': 51409
b'car': 607200
b'bus': 5790
b'pickuptruck': 35549
b'trafficcone': 29750
b'carwithtrailers': 974
b'workvan': 13109
b'semitruck': 3011
b'bicycle': 11484
b'industrialvehicle': 3136
b'motorcycle': 1341
b'schoolbus': 580
b'policecar': 188
b'fireengine': 69
b'ambulance': 99
b'wheelchair': 97
b'escooter': 94
b'w': 1
2021-12-03 23:03:59,629 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Cumulative object statistics
2021-12-03 23:03:59,629 [INFO] root: Cumulative object statistics
2021-12-03 23:03:59,629 [INFO] root: {
"pedestrian": 59444,
"car": 705190,
"bicycle": 13326,
"workvan": 15244,
"trafficcone": 34373,
"pickuptruck": 41296,
"bus": 6741,
"semitruck": 3508,
"industrialvehicle": 3656,
"schoolbus": 675,
"carwithtrailers": 1125,
"motorcycle": 1545,
"escooter": 116,
"wheelchair": 114,
"policecar": 222,
"fireengine": 79,
"ambulance": 112,
"w": 1
}
2021-12-03 23:03:59,629 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'pedestrian': 59444
b'car': 705190
b'bicycle': 13326
b'workvan': 15244
b'trafficcone': 34373
b'pickuptruck': 41296
b'bus': 6741
b'semitruck': 3508
b'industrialvehicle': 3656
b'schoolbus': 675
b'carwithtrailers': 1125
b'motorcycle': 1545
b'escooter': 116
b'wheelchair': 114
b'policecar': 222
b'fireengine': 79
b'ambulance': 112
b'w': 1
2021-12-03 23:03:59,629 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Class map.
Label in GT: Label in tfrecords file
b'Pedestrian': b'pedestrian'
b'Car': b'car'
b'Bicycle': b'bicycle'
b'WorkVan': b'workvan'
b'TrafficCone': b'trafficcone'
b'PickupTruck': b'pickuptruck'
b'Bus': b'bus'
b'SemiTruck': b'semitruck'
b'IndustrialVehicle': b'industrialvehicle'
b'SchoolBus': b'schoolbus'
b'CarWithTrailers': b'carwithtrailers'
b'Motorcycle': b'motorcycle'
b'eScooter': b'escooter'
b'WheelChair': b'wheelchair'
b'PoliceCar': b'policecar'
b'FireEngine': b'fireengine'
b'Ambulance': b'ambulance'
b'w': b'w'
2021-12-03 23:03:59,629 [INFO] root: Class map.
Label in GT: Label in tfrecords file
b'Pedestrian': b'pedestrian'
b'Car': b'car'
b'Bicycle': b'bicycle'
b'WorkVan': b'workvan'
b'TrafficCone': b'trafficcone'
b'PickupTruck': b'pickuptruck'
b'Bus': b'bus'
b'SemiTruck': b'semitruck'
b'IndustrialVehicle': b'industrialvehicle'
b'SchoolBus': b'schoolbus'
b'CarWithTrailers': b'carwithtrailers'
b'Motorcycle': b'motorcycle'
b'eScooter': b'escooter'
b'WheelChair': b'wheelchair'
b'PoliceCar': b'policecar'
b'FireEngine': b'fireengine'
b'Ambulance': b'ambulance'
b'w': b'w'
For the dataset_config in the experiment_spec, please use labels in the tfrecords file, while writing the classmap.
2021-12-03 23:03:59,630 [INFO] root: For the dataset_config in the experiment_spec, please use labels in the tfrecords file, while writing the classmap.
2021-12-03 23:03:59,630 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Tfrecords generation complete.
2021-12-03 23:03:59,630 [INFO] root: TFRecords generation complete.
2021-12-03 15:04:00,619 [INFO] tlt.components.docker_handler.docker_handler: Stopping container.
!tao yolo_v4 dataset_convert
!tao yolo_v4 dataset_convert -d $SPECS_DIR/yolo_v4_tfrecords_kitti_val.txt \
-o $DATA_DOWNLOAD_DIR/val/tfrecords/val
2021-12-03 15:04:17,839 [INFO] root: Registry: ['nvcr.io']
2021-12-03 15:04:17,991 [INFO] tlt.components.instance_handler.local_instance: Running command in container: nvcr.io/nvidia/tao/tao-toolkit-tf:v3.21.11-tf1.15.5-py3
2021-12-03 15:04:18,106 [WARNING] tlt.components.docker_handler.docker_handler:
Docker will run the commands as root. If you would like to retain your
local host permissions, please add the "user":"UID:GID" in the
DockerOptions portion of the "/home/dwang/.tao_mounts.json" file. You can obtain your
users UID and GID by using the "id -u" and "id -g" commands on the
terminal.
Using TensorFlow backend.
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
Using TensorFlow backend.
2021-12-03 23:04:26,878 [INFO] iva.detectnet_v2.dataio.build_converter: Instantiating a kitti converter
2021-12-03 23:04:26,878 [INFO] root: Instantiating a kitti converter
2021-12-03 23:04:26,878 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Creating output directory /workspace/tao-experiments/data/val/tfrecords
2021-12-03 23:04:26,878 [INFO] root: Generating partitions
2021-12-03 23:04:26,911 [INFO] iva.detectnet_v2.dataio.kitti_converter_lib: Num images in
Train: 9377 Val: 1526
2021-12-03 23:04:26,911 [INFO] root: Num images in
Train: 9377 Val: 1526
2021-12-03 23:04:26,911 [INFO] iva.detectnet_v2.dataio.kitti_converter_lib: Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2021-12-03 23:04:26,911 [INFO] root: Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2021-12-03 23:04:26,920 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 0
2021-12-03 23:04:26,920 [INFO] root: Writing partition 0, shard 0
WARNING:tensorflow:From /root/.cache/bazel/_bazel_root/ed34e6d125608f91724fda23656f1726/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/detectnet_v2/dataio/dataset_converter_lib.py:161: The name tf.python_io.TFRecordWriter is deprecated. Please use tf.io.TFRecordWriter instead.
2021-12-03 23:04:26,920 [WARNING] tensorflow: From /root/.cache/bazel/_bazel_root/ed34e6d125608f91724fda23656f1726/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/detectnet_v2/dataio/dataset_converter_lib.py:161: The name tf.python_io.TFRecordWriter is deprecated. Please use tf.io.TFRecordWriter instead.
/usr/local/lib/python3.6/dist-packages/iva/detectnet_v2/dataio/kitti_converter_lib.py:297: VisibleDeprecationWarning: Reading unicode strings without specifying the encoding argument is deprecated. Set the encoding, use None for the system default.
2021-12-03 23:04:28,618 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 1
2021-12-03 23:04:28,618 [INFO] root: Writing partition 0, shard 1
2021-12-03 23:04:30,230 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 2
2021-12-03 23:04:30,230 [INFO] root: Writing partition 0, shard 2
2021-12-03 23:04:31,796 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 3
2021-12-03 23:04:31,796 [INFO] root: Writing partition 0, shard 3
2021-12-03 23:04:33,388 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 4
2021-12-03 23:04:33,388 [INFO] root: Writing partition 0, shard 4
2021-12-03 23:04:35,014 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 5
2021-12-03 23:04:35,014 [INFO] root: Writing partition 0, shard 5
2021-12-03 23:04:36,813 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 6
2021-12-03 23:04:36,813 [INFO] root: Writing partition 0, shard 6
2021-12-03 23:04:38,400 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 7
2021-12-03 23:04:38,400 [INFO] root: Writing partition 0, shard 7
2021-12-03 23:04:40,186 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 8
2021-12-03 23:04:40,187 [INFO] root: Writing partition 0, shard 8
2021-12-03 23:04:41,729 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 0, shard 9
2021-12-03 23:04:41,729 [INFO] root: Writing partition 0, shard 9
2021-12-03 23:04:43,265 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'car': 10689
b'trafficcone': 488
b'pickuptruck': 612
b'workvan': 236
b'pedestrian': 886
b'bicycle': 194
b'semitruck': 45
b'bus': 93
b'industrialvehicle': 59
b'carwithtrailers': 14
b'motorcycle': 16
b'schoolbus': 8
b'wheelchair': 3
b'escooter': 4
b'policecar': 3
b'ambulance': 1
2021-12-03 23:04:43,265 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 0
2021-12-03 23:04:43,265 [INFO] root: Writing partition 1, shard 0
2021-12-03 23:04:50,371 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 1
2021-12-03 23:04:50,372 [INFO] root: Writing partition 1, shard 1
2021-12-03 23:04:59,289 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 2
2021-12-03 23:04:59,289 [INFO] root: Writing partition 1, shard 2
2021-12-03 23:05:05,520 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 3
2021-12-03 23:05:05,520 [INFO] root: Writing partition 1, shard 3
2021-12-03 23:05:11,935 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 4
2021-12-03 23:05:11,935 [INFO] root: Writing partition 1, shard 4
2021-12-03 23:05:18,288 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 5
2021-12-03 23:05:18,288 [INFO] root: Writing partition 1, shard 5
2021-12-03 23:05:24,682 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 6
2021-12-03 23:05:24,682 [INFO] root: Writing partition 1, shard 6
2021-12-03 23:05:33,082 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 7
2021-12-03 23:05:33,083 [INFO] root: Writing partition 1, shard 7
2021-12-03 23:05:39,848 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 8
2021-12-03 23:05:39,848 [INFO] root: Writing partition 1, shard 8
2021-12-03 23:05:46,333 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Writing partition 1, shard 9
2021-12-03 23:05:46,333 [INFO] root: Writing partition 1, shard 9
2021-12-03 23:05:52,937 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'car': 68141
b'semitruck': 334
b'workvan': 1394
b'pickuptruck': 4067
b'pedestrian': 5628
b'trafficcone': 3551
b'bus': 657
b'industrialvehicle': 346
b'bicycle': 1265
b'fireengine': 9
b'schoolbus': 73
b'motorcycle': 157
b'carwithtrailers': 112
b'policecar': 20
b'ambulance': 9
b'escooter': 12
b'wheelchair': 7
2021-12-03 23:05:52,937 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Cumulative object statistics
2021-12-03 23:05:52,937 [INFO] root: Cumulative object statistics
2021-12-03 23:05:52,938 [INFO] root: {
"car": 78830,
"trafficcone": 4039,
"pickuptruck": 4679,
"workvan": 1630,
"pedestrian": 6514,
"bicycle": 1459,
"semitruck": 379,
"bus": 750,
"industrialvehicle": 405,
"carwithtrailers": 126,
"motorcycle": 173,
"schoolbus": 81,
"wheelchair": 10,
"escooter": 16,
"policecar": 23,
"ambulance": 10,
"fireengine": 9
}
2021-12-03 23:05:52,938 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib:
Wrote the following numbers of objects:
b'car': 78830
b'trafficcone': 4039
b'pickuptruck': 4679
b'workvan': 1630
b'pedestrian': 6514
b'bicycle': 1459
b'semitruck': 379
b'bus': 750
b'industrialvehicle': 405
b'carwithtrailers': 126
b'motorcycle': 173
b'schoolbus': 81
b'wheelchair': 10
b'escooter': 16
b'policecar': 23
b'ambulance': 10
b'fireengine': 9
2021-12-03 23:05:52,938 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Class map.
Label in GT: Label in tfrecords file
b'Car': b'car'
b'TrafficCone': b'trafficcone'
b'PickupTruck': b'pickuptruck'
b'WorkVan': b'workvan'
b'Pedestrian': b'pedestrian'
b'Bicycle': b'bicycle'
b'SemiTruck': b'semitruck'
b'Bus': b'bus'
b'IndustrialVehicle': b'industrialvehicle'
b'CarWithTrailers': b'carwithtrailers'
b'Motorcycle': b'motorcycle'
b'SchoolBus': b'schoolbus'
b'WheelChair': b'wheelchair'
b'eScooter': b'escooter'
b'PoliceCar': b'policecar'
b'Ambulance': b'ambulance'
b'FireEngine': b'fireengine'
2021-12-03 23:05:52,938 [INFO] root: Class map.
Label in GT: Label in tfrecords file
b'Car': b'car'
b'TrafficCone': b'trafficcone'
b'PickupTruck': b'pickuptruck'
b'WorkVan': b'workvan'
b'Pedestrian': b'pedestrian'
b'Bicycle': b'bicycle'
b'SemiTruck': b'semitruck'
b'Bus': b'bus'
b'IndustrialVehicle': b'industrialvehicle'
b'CarWithTrailers': b'carwithtrailers'
b'Motorcycle': b'motorcycle'
b'SchoolBus': b'schoolbus'
b'WheelChair': b'wheelchair'
b'eScooter': b'escooter'
b'PoliceCar': b'policecar'
b'Ambulance': b'ambulance'
b'FireEngine': b'fireengine'
For the dataset_config in the experiment_spec, please use labels in the tfrecords file, while writing the classmap.
2021-12-03 23:05:52,938 [INFO] root: For the dataset_config in the experiment_spec, please use labels in the tfrecords file, while writing the classmap.
2021-12-03 23:05:52,938 [INFO] iva.detectnet_v2.dataio.dataset_converter_lib: Tfrecords generation complete.
2021-12-03 23:05:52,938 [INFO] root: TFRecords generation complete.
2021-12-03 15:05:53,937 [INFO] tlt.components.docker_handler.docker_handler: Stopping container.