I have an OCR model named
CRNN, which has an input with dynamic width.
So as you may know, after the CNN part of CRNN, our RNN(Bi-LSTM) module gets an uncertain SequenceLen, which will be set to
-1. according to the error message, it said that the parameter named maxSeqLen of
addRNNv2 should be >0.
lstm input shape: 4 [1 1 -1 512]
[11/26/2020-22:23:51] [E] [TRT] Parameter check failed at: …/builder/Network.cpp::addRNNCommon::572, condition: input.getDimensions().d[di.seqLen()] == maxSeqLen
 2038 segmentation fault (core dumped) ./crnn_lstm -s
Therefore, I can’t convert a
CRNN model with a dynamic width. How to solve this problem? or do I must to fix the
INPUT_W? any cues would be highly appreciated.
TensorRT Version: 18.104.22.168
GPU Type: 2080TI
CUDA Version: 10.2
CUDNN Version: 7.6
Operating System + Version: Ubuntu18.04
Python Version (if applicable): 3.7