Skip to content

float123/demo_trt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo_trt

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.

Defect

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.
image

Environment

python3
ubuntu18.4
cuda==10.0
tensorflow == 1.13
tensorrt == 7.0

Setup

cd ./CTPN/lib/utils/
chmod +x make.sh
./make.sh
python get_data.py

Testing

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

About

ctpn conversion trt example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages