detectRecog / CCPD

[ECCV 2018] CCPD: a diverse and well-annotated dataset for license plate detection and recognition
MIT License
2.25k stars 569 forks source link

Reimplementation for python 3.11 and PyTorch Lightning #103

Closed timurcarstensen closed 1 year ago

timurcarstensen commented 1 year ago

Motivation

Hi everyone,

last year I used this repository (and dataset) extensively in one of my classes and ended up reimplementing most of the code to work with python 3.11 and PyTorch lightning. I primarily had issues with installing the right PyTorch version and getting the ROI pooling functionality to work.

What

I restructured the repository to some extent:

Networks

Training

Pretraining and training are now handled by PyTorch lightning trainers in the following files:

→ both networks are re-implemented as LightningModule's (i.e., training, testing, and validation loops are handled in the network class

ROI Pooling

→ the logic for ROI pooling now resides in src/modules/utils.py

Miscellaneous