Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bai-shang/crnn_seq2seq_ocr_pytorch
/ functions
Functions
36 in github.com/bai-shang/crnn_seq2seq_ocr_pytorch
⨍
Functions
36
◇
Types & classes
11
↓ 4 callers
Method
__init__
(self, channel_size)
crnn/seq2seq.py:12
↓ 3 callers
Method
initHidden
(self, batch_size)
crnn/seq2seq.py:115
↓ 2 callers
Method
decode
Decode encoded texts back into strs. Args: torch.IntTensor [length_0 + length_1 + ... length_{n - 1}]: encoded texts.
src/utils.py:57
↓ 2 callers
Method
encode
Args: text (str or list of str): texts to convert. Returns: torch.IntTensor targets:max_length × batch_size
src/utils.py:34
↓ 2 callers
Method
reset
(self)
src/utils.py:91
↓ 2 callers
Method
val
(self)
src/utils.py:95
↓ 1 callers
Method
add
(self, v)
src/utils.py:80
↓ 1 callers
Function
evaluate
(image, text, encoder, decoder, data_loader, max_eval_iter=100)
train.py:112
↓ 1 callers
Function
main
()
train.py:165
↓ 1 callers
Function
main
()
inference.py:59
↓ 1 callers
Function
seq2seq_decode
(encoder_out, decoder, decoder_input, decoder_hidden, max_length)
inference.py:38
↓ 1 callers
Function
train
(image, text, encoder, decoder, criterion, train_loader, teach_forcing_prob=1)
train.py:50
Method
__call__
(self, img)
src/dataset.py:55
Method
__call__
(self, batch)
src/dataset.py:106
Method
__getitem__
(self, index)
src/dataset.py:24
Method
__init__
(self, input_size, hidden_size, output_size)
crnn/seq2seq.py:31
Method
__init__
(self, hidden_size, output_size, dropout_p=0.1, max_length=71)
crnn/seq2seq.py:49
Method
__init__
(self, channel_size, hidden_size)
crnn/seq2seq.py:85
Method
__init__
(self, hidden_size, output_size, dropout_p=0.1, max_length=71)
crnn/seq2seq.py:107
Method
__init__
(self, alphabet)
src/utils.py:25
Method
__init__
(self)
src/utils.py:77
Method
__init__
(self, text_line_file=None, transform=None, target_transform=None)
src/dataset.py:12
Method
__init__
(self, img_width, img_height)
src/dataset.py:50
Method
__init__
(self, data_source, batch_size)
src/dataset.py:75
Method
__init__
(self, img_height=32, img_width=100)
src/dataset.py:101
Method
__iter__
(self)
src/dataset.py:79
Method
__len__
(self)
src/dataset.py:21
Method
__len__
(self)
src/dataset.py:95
Method
forward
(self, input)
crnn/seq2seq.py:23
Method
forward
(self, input)
crnn/seq2seq.py:37
Method
forward
(self, input, hidden, encoder_outputs)
crnn/seq2seq.py:64
Method
forward
(self, input)
crnn/seq2seq.py:92
Method
forward
(self, input, hidden, encoder_outputs)
crnn/seq2seq.py:112
Method
initHidden
(self)
crnn/seq2seq.py:80
Function
load_data
(v, data)
src/utils.py:101
Function
weights_init
(model)
src/utils.py:106