You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tensorrt不支持64位精度的ONNX模型:
make yolo时报错:
[2024-04-01 20:28:03][error][trt_infer.cpp:23]:NVInfer: src/tensorRT/onnx_parser/ModelImporter.cpp:739: --- End node ---
[2024-04-01 20:28:03][error][trt_infer.cpp:23]:NVInfer: src/tensorRT/onnx_parser/ModelImporter.cpp:741: ERROR: src/tensorRT/onnx_parser/builtin_op_importers.cpp:3248 In function importRange:
[8] Assertion failed: inputs.at(0).isInt32() && "For range operator with dynamic inputs, this version of TensorRT only supports INT32!"
[2024-04-01 20:28:03][error][trt_builder.cpp:609]:Can not parse OnnX file: yolov9c_modified.onnx
[2024-04-01 20:28:03][error][yolo.cpp:201]:Engine yolov9c_modified.FP32.trtmodel load failed
[2024-04-01 20:28:03][error][app_yolo.cpp:53]:Engine is nullptr
The text was updated successfully, but these errors were encountered:
# pip install onnxsimimportonnxfromonnxsimimportsimplifyonnx_model=onnx.load("yolov9c_modified.onnx")
model_simp, check=simplify(onnx_model)
assertcheck, "Simplified ONNX model could not be Validated"onnx.save(model_simp, "yolov9c_modified.sim.onnx")
如果上述步骤失败,更新下 onnx-parser 解析器,指令如下:
cd tensorRT_Pro-YOLOv8
bash onnx_parser/use_tensorrt_8.6.sh
tensorrt不支持64位精度的ONNX模型:
make yolo时报错:
[2024-04-01 20:28:03][error][trt_infer.cpp:23]:NVInfer: src/tensorRT/onnx_parser/ModelImporter.cpp:739: --- End node ---
[2024-04-01 20:28:03][error][trt_infer.cpp:23]:NVInfer: src/tensorRT/onnx_parser/ModelImporter.cpp:741: ERROR: src/tensorRT/onnx_parser/builtin_op_importers.cpp:3248 In function importRange:
[8] Assertion failed: inputs.at(0).isInt32() && "For range operator with dynamic inputs, this version of TensorRT only supports INT32!"
[2024-04-01 20:28:03][error][trt_builder.cpp:609]:Can not parse OnnX file: yolov9c_modified.onnx
[2024-04-01 20:28:03][error][yolo.cpp:201]:Engine yolov9c_modified.FP32.trtmodel load failed
[2024-04-01 20:28:03][error][app_yolo.cpp:53]:Engine is nullptr
The text was updated successfully, but these errors were encountered: