Calamari-OCR / calamari

Line based ATR Engine based on OCRopy
Apache License 2.0
1.04k stars 209 forks source link

allow SpatialDropout for Conv layers #351

Open bertsky opened 7 months ago

bertsky commented 7 months ago

The only Dropout layer available uses keras.layers.Dropout:

https://github.com/Calamari-OCR/calamari/blob/2f71b7eb08339d25ccb21d80c1d5b851f3d5bdaa/calamari_ocr/ocr/model/layers/dropout.py#L27

However, it seems customary to use SpatialDropout1D after the convolutional layers.