The Pytorch implementation is xuexingyu24/License_Plate_Detection_Pytorch.
- 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 to License_Plate_Detection_Pytorch/
// go to License_Plate_Detection_Pytorch/
python genwts.py
// a file 'LPRnet.wts' will be generated.
- 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 file i.e. 'LPRnet.engine'
sudo ./LPRnet -d // deserialize model and run inference