Shortcuts

ASTEREncoder

class mmocr.models.textrecog.ASTEREncoder(in_channels, num_layers=2, init_cfg={'layer': 'Conv2d', 'type': 'Xavier'})[source]

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

Parameters
  • in_channels (int) –

  • num_layers (int) –

Return type

None

forward(feat, img_metas=None)[source]
Parameters

feat (Tensor) – Feature of shape (N, C, 1, W).

Returns

Output of BiLSTM.

Return type

Tensor

Read the Docs v: stable
Versions
latest
stable
v1.0.1
v1.0.0
0.x
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.0
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.