Welcome to crnn.gluon’s documentation!¶
crnn.gluon¶
config module¶
convert_rec module¶
crnn module¶
-
class
crnn.
BidirectionalGRU
(hidden_size, num_layers, nOut)[源代码]¶ 基类:
mxnet.gluon.block.HybridBlock
-
class
crnn.
BidirectionalLSTM
(hidden_size, num_layers, nOut)[源代码]¶ 基类:
mxnet.gluon.block.HybridBlock
-
class
crnn.
CRNN
(n_class, hidden_size=256, num_layers=1)[源代码]¶ 基类:
mxnet.gluon.block.HybridBlock
-
class
crnn.
Decoder
(n_class, hidden_size=256, num_layers=1)[源代码]¶ 基类:
mxnet.gluon.block.HybridBlock
dataset module¶
-
class
dataset.
ImageDataset
(data_txt: str, data_shape: tuple, img_channel: int, num_label: int, alphabet: str, phase: str = 'train')[源代码]¶ 基类:
mxnet.gluon.data.dataset.Dataset
-
class
dataset.
RecordDataset
(filename, data_shape: tuple, img_channel: int, num_label: int)[源代码]¶ 基类:
mxnet.gluon.data.dataset.RecordFileDataset
A dataset wrapping over a RecordIO file contraining images Each sample is an image and its corresponding label
keys module¶
predict module¶
-
class
predict.
GluonNet
(model_path, alphabet, img_shape, net, img_channel=3, gpu_id=None)[源代码]¶ 基类:
object
-
__init__
(model_path, alphabet, img_shape, net, img_channel=3, gpu_id=None)[源代码]¶ 初始化gluon模型 :param model_path: 模型地址 :param alphabet: 字母表 :param img_shape: 图像的尺寸(w,h) :param net: 网络计算图,如果在model_path中指定的是参数的保存路径,则需要给出网络的计算图 :param img_channel: 图像的通道数: 1,3 :param gpu_id: 在哪一块gpu上运行
-