From 527bb98b191d82b308de1585047e06056258d08d Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Wed, 18 Nov 2020 20:56:19 +0100 Subject: Some minor changes. --- src/text_recognizer/networks/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/text_recognizer/networks/__init__.py') diff --git a/src/text_recognizer/networks/__init__.py b/src/text_recognizer/networks/__init__.py index 2cc1137..078d771 100644 --- a/src/text_recognizer/networks/__init__.py +++ b/src/text_recognizer/networks/__init__.py @@ -4,6 +4,7 @@ from .crnn import ConvolutionalRecurrentNetwork from .ctc import greedy_decoder from .densenet import DenseNet from .lenet import LeNet +from .metrics import accuracy, accuracy_ignore_pad, cer, wer from .mlp import MLP from .residual_network import ResidualNetwork, ResidualNetworkEncoder from .sparse_mlp import SparseMLP @@ -12,6 +13,9 @@ from .util import sliding_window from .wide_resnet import WideResidualNetwork __all__ = [ + "accuracy", + "accuracy_ignore_pad", + "cer", "CNNTransformer", "ConvolutionalRecurrentNetwork", "DenseNet", @@ -23,5 +27,6 @@ __all__ = [ "sliding_window", "Transformer", "SparseMLP", + "wer", "WideResidualNetwork", ] -- cgit v1.2.3-70-g09d2