Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-trained detection for UK licence plates in my own fork, but not working perfectly #84

Open
Chukun-Leo-Gao opened this issue Dec 9, 2023 · 1 comment

Comments

@Chukun-Leo-Gao
Copy link

It seems that the training data is mainly German licence plates, so the program can't really identify the rear plate of British cars, which is yellow instead of white. I've trained my own model and uploaded the UK_licence_plate.pt weight file in my own fork. However, it seems like my weight is not working perfectly, as I need to manually assign the weights_name and training_inference_size variable in main.py for it to work.

Is it possible to:
guide me on how to make my UK_licence_plate.pt work better, i.e., without needing me to manually assign variables?
maybe add my trained weights to the main program for British users who wants to clean licence plates from videos?

Thank you very much!

@tfaehse
Copy link
Owner

tfaehse commented Feb 3, 2024

Hi! Thank your for your interest, and especially the work you've done!

The code uses a fairly ugly regex (r"(?P\d*)p_") to search for the training image size. Basically, your filename "needs to" follow this as well in order for it to work directly. The regex searches for a number (the inference size) followed by "p_", so you could for example name yours "UK_720p_license_plates.pt".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants