Closed amaadmirza closed 4 years ago
@icarofua ??
Dear Amaad Mirza,
In order to retrain the CNN-OCR model using custom license plate images, you need to compile the Darknet framework and generate the license plate images with the respective annotations in the Darknet format. Then, you can use the .cfg file we provide to train exactly the same model used by us (models.tgz/OCR/darknet/cfg/cr-net.cfg).
For more detailed information, we recommend that you take a look at this guide, which we also used to train the CNN-OCR model.
Hi Rayson. Thank you for sharing your work. Based on your previous answer I understand that the guide I should follow to train the OCR model based on my custom plates is this one:
If that's correct, do I have to transform the annotations you provide, such as:
vehicles: 1 position_vehicle: 1491 100 429 378 type: car plate: AZI4586 position_plate: 1822 436 81 27 char 1: 1828 443 9 16 char 2: 1837 443 11 16 char 3: 1849 444 5 15 char 4: 1860 444 9 16 char 5: 1868 445 11 14 char 6: 1878 445 9 15 char 7: 1887 445 9 15
to the darknet format:
Dear luisfgutierrez,
Exactly, this is the guide you must follow to train any object detector using the Darknet framework (not only the OCR model).
You need to convert the .txt files to the darknet format, which is as follows:
You should do this without any major difficulties using python + regex.
In our experiments (5 different executions), the average time to train the "LP detection and Layout Classification Model" model was 17.8 hours in an AMD Ryzen Threadripper 1920X 3.5GHz CPU, with 32 GB of RAM and an NVIDIA Titan Xp GPU. However, this time may vary according to other processes running simultaneously.
Finally, you were right about the missing files in the path I mentioned in my previous answer. We updated the models.tgz file and now the OCR files are included in it. Thanks for the heads up!
Best regards,
How to retrain CNN-ocr on custom plate..!! Can you please tell me the steps to retrain the model on custom number plate.. Any guide link??