Even though the training results are not good, I tried to convert to .engine.
I can successfully convert to onnx.
This is log in exporting to onnx.
Using TensorFlow backend.
2025-09-05 00:08:22.962699: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/usr/local/lib/python3.6/dist-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.5) or chardet (3.0.4) doesn’t match a supported version!
RequestsDependencyWarning)
Using TensorFlow backend.
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/usr/local/lib/python3.6/dist-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.5) or chardet (3.0.4) doesn’t match a supported version!
RequestsDependencyWarning)
2025-09-05 00:08:26,035 [INFO] iva.detectnet_v2.spec_handler.spec_loader: Merging specification from /workspace/home/user/tao_tutorials/notebooks/tao_launcher_starter_kit/detectnet_v2/specs/detectnet_v2_train_resnet34_kitti.txt
2025-09-05 00:08:27,389 [INFO] iva.common.export.keras_exporter: Using input nodes: [‘input_1’]
2025-09-05 00:08:27,389 [INFO] iva.common.export.keras_exporter: Using output nodes: [‘output_cov/Sigmoid’, ‘output_bbox/BiasAdd’]
/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py:292: UserWarning: No training configuration found in save file: the model was not compiled. Compile it manually.
warnings.warn('No training configuration found in save file: ’
NOTE: UFF has been tested with TensorFlow 1.14.0.
WARNING: The version of TensorFlow installed on this system is not guaranteed to work with UFF.
DEBUG [/usr/local/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py:96] Marking [‘output_cov/Sigmoid’, ‘output_bbox/BiasAdd’] as outputs
Telemetry data couldn’t be sent, but the command ran successfully.
[WARNING]: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)>
Execution status: PASS
Then convert to engine using nvcr.io/nvidia/tao/tao-toolkit:5.5.0-deploy docker.
It was not successful with the following issue.
root@user-Nuvo-10000-Series:/workspace/home/user/tao_tutorials/bmtc/Stand_lie# detectnet_v2 gen_trt_engine -m /workspace/home/user/tao_tutorials/bmtc/Stand_lie/experiment_dir_unpruned_peoplent/weights/peoplenet_model.onnx -e /workspace/home/user/tao_tutorials/notebooks/tao_launcher_starter_kit/detectnet_v2/specs/detectnet_v2_train_resnet34_kitti.txt --cal_image_dir /workspace/home/user/tao_tutorials/bmtc/Stand_lie/train/images --data_type int8 --batch_size 16 --min_batch_size 1 --opt_batch_size 8 --max_batch_size 16 --batches 10 --cal_cache_file /workspace/home/user/tao_tutorials/bmtc/Stand_lie/experiment_dir_unpruned_peoplent/weights/cal.bin --cal_data_file /workspace/home/user/tao_tutorials/bmtc/Stand_lie/experiment_dir_unpruned_peoplent/weights/cal.tensorfile --engine_file /workspace/home/user/tao_tutorials/bmtc/Stand_lie/experiment_dir_unpruned_peoplent/weights/peoplenet_model.engine --results_dir /workspace/home/user/tao_tutorials/bmtc/Stand_lie/experiment_dir_unpruned_peoplent/weights
Loading uff directly from the package source code
Loading uff directly from the package source code
2025-09-05 00:32:01,806 [TAO Toolkit] [INFO] nvidia_tao_deploy.cv.common.logging.status_logging 196: Log file already exists at /workspace/mnt/sda/Activities/BMTC_V/Stand_lie/experiment_dir_unpruned_peoplent/weights/status.json
2025-09-05 00:32:01,806 [TAO Toolkit] [INFO] root 167: Starting detectnet_v2 gen_trt_engine.
[09/05/2025-00:32:01] [TRT] [I] [MemUsageChange] Init CUDA: CPU +1, GPU +0, now: CPU 36, GPU 880 (MiB)
[09/05/2025-00:32:05] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1453, GPU +268, now: CPU 1566, GPU 1148 (MiB)
2025-09-05 00:32:05,038 [TAO Toolkit] [INFO] nvidia_tao_deploy.cv.detectnet_v2.engine_builder 143: Parsing ONNX model
2025-09-05 00:32:05,060 [TAO Toolkit] [INFO] root 167: Error parsing message with type ‘onnx.ModelProto’
Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/detectnet_v2/scripts/gen_trt_engine.py”, line 217, in
main(args)
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/common/decorators.py”, line 63, in _func
raise e
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/common/decorators.py”, line 47, in _func
runner(cfg, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/detectnet_v2/scripts/gen_trt_engine.py”, line 72, in main
builder.create_network(tmp_onnx_file, file_format)
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/detectnet_v2/engine_builder.py”, line 144, in create_network
self._input_dims = self.get_onnx_input_dims(model_path)
File “/usr/local/lib/python3.10/dist-packages/nvidia_tao_deploy/cv/detectnet_v2/engine_builder.py”, line 96, in get_onnx_input_dims
onnx_model = onnx.load(model_path)
File “/usr/local/lib/python3.10/dist-packages/onnx/init.py”, line 210, in load_model
model = _get_serializer(format, f).deserialize_proto(_load_bytes(f), ModelProto())
File “/usr/local/lib/python3.10/dist-packages/onnx/serialization.py”, line 118, in deserialize_proto
decoded = typing.cast(Optional[int], proto.ParseFromString(serialized))
google.protobuf.message.DecodeError: Error parsing message with type ‘onnx.ModelProto’
[2025-09-05 00:32:05,298 - TAO Toolkit - nvidia_tao_deploy.cv.common.entrypoint.entrypoint_proto - INFO] Sending telemetry data.
[2025-09-05 00:32:05,298 - TAO Toolkit - root - INFO] ================> Start Reporting Telemetry <================
[2025-09-05 00:32:05,298 - TAO Toolkit - root - INFO] Sending {‘version’: ‘5.5.0’, ‘action’: ‘gen_trt_engine’, ‘network’: ‘detectnet_v2’, ‘gpu’: [‘NVIDIA-GeForce-RTX-4080-SUPER’], ‘success’: False, ‘time_lapsed’: 3.870880603790283} to ``https://api.tao.ngc.nvidia.com``.
[2025-09-05 00:32:07,702 - TAO Toolkit - root - INFO] Telemetry sent successfully.
[2025-09-05 00:32:07,702 - TAO Toolkit - root - INFO] ================> End Reporting Telemetry <================
[2025-09-05 00:32:07,702 - TAO Toolkit - nvidia_tao_deploy.cv.common.entrypoint.entrypoint_proto - INFO] Execution status: FAIL
root@user-Nuvo-10000-Series:/workspace/home/user/tao_tutorials/bmtc/Stand_lie# exit
exit