This is an example of implementing ctpn using tensorrt.
The example does not use dynamic mode and reshapes the image to (600,1200).
In order to observe tensor more intuitively, the code is not concise.
Running demo_org.py and demo_trt.py, you will find that the results obtained by the conv step are basically the same,
but the results from bilstm are very different.
python3
ubuntu18.4
cuda==10.0
tensorflow == 1.13
tensorrt == 7.0
cd ./CTPN/lib/utils/
chmod +x make.sh
./make.sh
python get_data.py
The original execution code, the ctpn model in / CTPN / lib / networks / VGGnet_test.py and network.py
python demo_org.py
trt code, model in ctpn_static.py,The execution process is in ctpnport_trt.py
python demo_trt.py