LPRNet_Pytorch

repository·master·Indexed 22 days ago

https://github.com/sirius-ai/lprnet_pytorch

A high-performance, lightweight PyTorch implementation of the LPRNet framework for License Plate Recognition (LPR). Optimized for Chinese blue and green/new energy plates, the library supports training and testing with images resized to 94x24 pixels and provides pretrained weights.

Tokens
314
Snippets
2
Records
4
Agent score
28%

What's inside lprnet_pytorch

  1. Train LPRNet

    master

    To train the model, follow these steps:

    1. Prepare Datasets: Ensure all images in your dataset are resized to exactly 94x24 pixels.
    2. Configure Paths: Modify the train_LPRNet.py script to point to your dataset directory using the --train_img_dirs hyperparameter.
    3. Adjust Hyperparameters: Modify other hyperparameters in the script as needed for your specific dataset.
    4. Execute Training: Run the training script via the command line.
    python train_LPRNet.py
  2. Test LPRNet

    master

    To evaluate the model on a test dataset:

    1. Prepare Datasets: Ensure all test images are resized to 94x24 pixels.
    2. Configure Paths: Modify the test_LPRNet.py script to point to your test images using the --test_img_dirs hyperparameter.
    3. Execute Testing: Run the testing script. To visualize the testing results, include the --show true or --show 1 flag.
    python test_LPRNet.py --show true