keras-onnx icon indicating copy to clipboard operation
keras-onnx copied to clipboard

keras yolov3 onnx model can not parsers by tensorrt c++ api

Open XuDongHecs opened this issue 5 years ago • 4 comments

[E] [TRT] Parameter check failed at: ../builder/Network.cpp::addInput::465, condition: isValidDims(dims) ERROR: ModelImporter.cpp:80 In function importInput: [8] Assertion failed: *tensor = importer_ctx->network()->addInput( input.name().c_str(), trt_dtype, trt_dims)

XuDongHecs avatar Sep 08 '19 01:09 XuDongHecs

Can you try the model in model zoo here to see if it can work?

jiafatom avatar Sep 08 '19 04:09 jiafatom

WARNING: ONNX model has a newer ir_version (0.0.5) than this parser was built against (0.0.3). [E] [TRT] Parameter check failed at: c:\p4sw\sw\gpgpu\MachineLearning\DIT\release\5.1\builder\Network.cpp::nvinfer1::Network::addInput::465, condition: isValidDims(dims) ERROR: ModelImporter.cpp:80 In function importInput: [8] Assertion failed: *tensor = importer_ctx->network()->addInput( input.name().c_str(), trt_dtype, trt_dims)

I face the same problem,i run by tensorrt c++ api,tensorrt version is TensorRT-5.1.5.0.Windows10.x86_64.cuda-9.0.cudnn7.5.I try the model in model Zoo,the same Error happen.

araleqiu avatar Sep 11 '19 03:09 araleqiu

if you solve this problem. contact me!

---Original--- From: "araleqiu"<[email protected]> Date: Wed, Sep 11, 2019 11:46 AM To: "onnx/keras-onnx"<[email protected]>; Cc: "Author"<[email protected]>;"XuDongHecs"<[email protected]>; Subject: Re: [onnx/keras-onnx] keras yolov3 onnx model can not parsers by tensorrt c++ api (#231)

WARNING: ONNX model has a newer ir_version (0.0.5) than this parser was built against (0.0.3). [E] [TRT] Parameter check failed at: c:\p4sw\sw\gpgpu\MachineLearning\DIT\release\5.1\builder\Network.cpp::nvinfer1::Network::addInput::465, condition: isValidDims(dims) ERROR: ModelImporter.cpp:80 In function importInput: [8] Assertion failed: *tensor = importer_ctx->network()->addInput( input.name().c_str(), trt_dtype, trt_dims)

I face the same problem,i run by tensorrt c++ api,tensorrt version is TensorRT-5.1.5.0.Windows10.x86_64.cuda-9.0.cudnn7.5.I try the model in model Zoo,the same Error happen.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

XuDongHecs avatar Sep 11 '19 03:09 XuDongHecs

@XuDongHecs can you post this issue to this repo? seems more related there.

jiafatom avatar Nov 06 '19 20:11 jiafatom