Please provide the following information when requesting support.
• Hardware (V100)
• Network Type (Detectnet_v2/Faster_rcnn/Yolo_v4/LPRnet/Mask_rcnn/Classification/etc)
• TLT Version (Please run “tlt info --verbose” and share “docker_tag” here)
• Training spec file(If have, please share here)
• How to reproduce the issue ? (This is for errors. Please share the command line and the detailed log here.)
Hello I was able to complete my custom dataset/model training using YoloV4 on google colab. The prediction accuracy for my classes is acceptable. However, during the usage of the YoloV4 notebook I noticed persistent warning of 'Failed to import TensorRT package, exporting TLT to a TensorRT engine will not be available". Lastly when I tried to export the hdf5_epoch_n file it encountered warning and errors.
I added the following command to the YoloV4 notebook to export :
!tao model yolo_v4 export -m /content/drive/MyDrive/results/yolo_v4/bkp_experiment_dir_retrain/weights/yolov4_resnet18_epoch_160.hdf5 -o /content/drive/MyDrive/results/yolo_v4/export_model/yolo_v4.etlt
-e /content/drive/MyDrive/nvidia-tao/tensorflow/yolo_v4/specs/yolo_v4_retrain_resnet18_kitti.txt
-k $KEY
I spent some 2 days trying to understand the issue and trying to convert hdf5 to onnx using other methods. What I noticed is on colab there are 2 python version 3.10(default) and 3.8.18. I think most of the Nvidia related packages are installed under 3.8.18. I suspect this is the reason why tensorrt or tensorboard is not getting detected in spite the actual packages are installed on python 3.8.
Is there some workaround here on getting python 3.8 as default for the notebook? Tried several suggestions from stack overflow but not is not working.
Lastly is there another method of converting hdf5 to onnx or other format such as *.pb or .etlt?
Error and Warning Messages:
Using TensorFlow backend.
2024-03-16 19:25:50.821258: I tensorflow/stream_executor/platform/default/dso_loader.cc:50] Successfully opened dynamic library libcudart.so.12
2024-03-16 19:25:50,876 [TAO Toolkit] [WARNING] tensorflow 40: Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
2024-03-16 19:25:51,952 [TAO Toolkit] [WARNING] root 329: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
2024-03-16 19:25:52,543 [TAO Toolkit] [WARNING] root 329: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
2024-03-16 19:25:54,520 [TAO Toolkit] [WARNING] nvidia_tao_tf1.cv.common.export.trt_utils 36: Failed to import TensorRT package, exporting TLT to a TensorRT engine will not be available.
2024-03-16 19:25:54,520 [TAO Toolkit] [WARNING] nvidia_tao_tf1.cv.common.export.base_exporter 44: Failed to import TensorRT package, exporting TLT to a TensorRT engine will not be available.
Using TensorFlow backend.
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:nvidia_tao_tf1.cv.common.export.trt_utils:Failed to import TensorRT package, exporting TLT to a TensorRT engine will not be available.
WARNING:nvidia_tao_tf1.cv.common.export.base_exporter:Failed to import TensorRT package, exporting TLT to a TensorRT engine will not be available.
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/yolo_v4/scripts/export.py”, line 42, in
raise e
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/yolo_v4/scripts/export.py”, line 26, in
launch_export(Exporter, None, “onnx”)
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/common/export/app.py”, line 323, in launch_export
run_export(Exporter, args, backend)
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/common/export/app.py”, line 277, in run_export
exporter = Exporter(model_path, key,
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/yolo_v4/export/yolov4_exporter.py”, line 81, in init
super(YOLOv4Exporter, self).init(model_path=model_path,
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/common/export/keras_exporter.py”, line 100, in init
super(KerasExporter, self).init(
File “/usr/local/lib/python3.8/dist-packages/nvidia_tao_tf1/cv/common/export/base_exporter.py”, line 88, in init
self._trt_version_number = NV_TENSORRT_MAJOR * 1000 + NV_TENSORRT_MINOR * 100 +
NameError: name ‘NV_TENSORRT_MAJOR’ is not defined
Telemetry data couldn’t be sent, but the command ran successfully.
[WARNING]: ‘str’ object has no attribute ‘decode’
Execution status: FAIL