Input: for dimension number 2 in profile 0 does not match network definition (got min=800, opt=800, max=800), expected min=opt=max=384

im trying to create engine file with the below command

./tao-converter -k nvidia_tlt -p Input,1x3x800x1376,8x3x800x1376,16x3x800x1376 -d 3,384,384 -o BatchedNMS -e trt.engine -m 1 -t fp16 -i nchw /home/ubuntu/PoC/model/yolov4_resnet18_epoch_050.etlt

And i get the below error . Kindly help

./tao-converter -k nvidia_tlt -p Input,1x3x800x1376,8x3x800x1376,16x3x800x1376 -d 3,384,384 -o BatchedNMS -e  trt.engine -m 1 -t fp16 -i nchw  /home/ubuntu/PoC/model/yolov4_resnet18_epoch_050.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:3771: Searching for plugin: BatchedNMSDynamic_TRT, plugin_version: 1, plugin_namespace: 
[INFO] builtin_op_importers.cpp:3788: 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, 800, 1376) for input: Input
[INFO] Using optimization profile opt shape: (8, 3, 800, 1376) for input: Input
[INFO] Using optimization profile max shape: (16, 3, 800, 1376) for input: Input
[ERROR] Input: for dimension number 2 in profile 0 does not match network definition (got min=800, opt=800, max=800), expected min=opt=max=384).
[ERROR] Network validation failed.
[ERROR] Unable to create engine
Segmentation fault (core dumped)

Seems that you have trained a model of 1248x384, right?

i was able to fix it . thank you

yes …