duan8/lprnet
alpha 2c2d3f28ad
add LPRNet (#430)
* upload LRPnet

* upload LPRnet

* upload LPRnet

* 1
2021-03-04 17:29:19 +08:00
..
1.jpg add LPRNet (#430) 2021-03-04 17:29:19 +08:00
CMakeLists.txt add LPRNet (#430) 2021-03-04 17:29:19 +08:00
genwts.py add LPRNet (#430) 2021-03-04 17:29:19 +08:00
logging.h add LPRNet (#430) 2021-03-04 17:29:19 +08:00
LPRnet.cpp add LPRNet (#430) 2021-03-04 17:29:19 +08:00
README.md add LPRNet (#430) 2021-03-04 17:29:19 +08:00

The Pytorch implementation is xuexingyu24/License_Plate_Detection_Pytorch.

How to Run

1. generate LPRnet.wts from pytorch

git clone https://github.com/wang-xinyu/tensorrtx.git
git clone https://github.com/xuexingyu24/License_Plate_Detection_Pytorch.git

// copy tensorrtx/LRPnet/gen_wts.py  License_Plate_Detection_Pytorch
// go to License_Plate_Detection_Pytorch/
python genwts.py
// a file 'LPRnet.wts' will be generated.

2. build LPRnet and run

// put LPRnet.wts into tensorrtx/LPRnet
// go to tensorrtx/LPRnet
mkdir build
cd build
cmake ..
make
sudo ./LPRnet -s  // serialize model to plan file i.e. 'LPRnet.engine'
do inference
sudo ./LPRnet -d  // deserialize plan file and run inference