sirius-ai / LPRNet_Pytorch

Pytorch Implementation For LPRNet, A High Performance And Lightweight License Plate Recognition Framework.
Apache License 2.0
908 stars 227 forks source link

Reduced vs basic model #49

Open barrypitman opened 3 years ago

barrypitman commented 3 years ago

Thanks for the great project! The LPRNet paper talks about the "basic" and "reduced" model:

To improve runtime performance we also modified LPRNet basic by using 2 × 2 strides for all pooling layers. This modification (the LPRNet reduced model) reduces the size of intermediate feature maps and total inference computational cost significantly

Is your model using the basic or reduced architecture? From what I can see, it is the basic architecture, I'm interested to know if you tried the reduced architecture? If I try modifying your maxpool3d layers to maxpool2d, and use 2x2 strides instead of 1x1, 1x2 and 1x2, I can't get the shapes to match up at the end. Just curious to know if this is something that you tried?

kHarshit commented 2 years ago

@barrypitman how did you solve it then?

123Vincent2018 commented 2 years ago

@barrypitman can you share the "reduced" Net.py?

barrypitman commented 2 years ago

My changes are here: https://github.com/barrypitman/tensorflow_LPRnet.

Edit - sorry I'm getting my repos mixed up. I don't think I solved this issue (maxpool3d layers to maxpool2d)