ASTEREncoder¶
- class mmocr.models.textrecog.ASTEREncoder(in_channels, num_layers=2, init_cfg={'layer': 'Conv2d', 'type': 'Xavier'})[源代码]¶
Implement BiLSTM encoder module in `ASTER: An Attentional Scene Text Recognizer with Flexible Rectification.
<https://ieeexplore.ieee.org/abstract/document/8395027/` :param in_channels: Number of input channels. :type in_channels: int :param num_layers: Layers of BiLSTM. Defaults to 2. :type num_layers: int