Tao-converter convert yolo-v4.etlt to trt.engine error:no optimization profile has been defined

Please provide the following information when requesting support.

• Hardware (Nano)
• Network Type (yolo-v4)
• TLT Version (tao_toolkit)
• 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.)

Hi,
I want to converter the etlt model to trt engine on Nano. But the following error occurs:
!./tao-converter -k $KEY
-p Input,1x3x384x1248,8x3x384x1248,16x3x384x1248
-o BatchedNMS
-e trt_yolo_resnet18.fp32.engine
-t fp32
-i nchw
-m 1
yolov4_resnet18_epoch_065.etlt

[WARNING] onnx2trt_utils.cpp:220: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[WARNING] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
[INFO] ModelImporter.cpp:135: No importer registered for op: BatchedNMSDynamic_TRT. Attempting to import as plugin.
[INFO] builtin_op_importers.cpp:3659: Searching for plugin: BatchedNMSDynamic_TRT, plugin_version: 1, plugin_namespace:
[INFO] builtin_op_importers.cpp:3676: Successfully created plugin: BatchedNMSDynamic_TRT
[INFO] Detected input dimensions from the model: (-1, 3, 384, 1248)
[INFO] Model has dynamic shape. Setting up optimization profiles.
[INFO] Using optimization profile min shape: (1, 3, 384, 1248) for input: Input
[INFO] Using optimization profile opt shape: (8, 3, 384, 1248) for input: Input
[INFO] Using optimization profile max shape: (16, 3, 384, 1248) for input: Input
[ERROR] Network has dynamic or shape inputs, but no optimization profile has been defined.
[ERROR] Network validation failed.
[ERROR] Unable to create engine

Could anyone can help me? Thanks!

Please try
$ sudo jetson_clocks

I tried this command, but i got same result~

Can you try
!./tao-converter -k $KEY
-p Input,1x3x384x1248,1x3x384x1248,1x3x384x1248
-o BatchedNMS
-e trt_yolo_resnet18.fp32.engine
-t fp32
-i nchw
-m 1
-w 100000000
yolov4_resnet18_epoch_065.etlt

I tried, but same error~~

Are you running inside the TAO docker?

No.This jupyter is running on Jetson Nano

OK, did you download the correct version of tao-converter for your Nano?
See TensorRT — TAO Toolkit 3.0 documentation

Thank you! It works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.