From 3b06ef615a8db67a03927576e0c12fbfb2501f5f Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Mon, 14 Sep 2020 22:15:47 +0200 Subject: Fixed CTC loss. --- src/text_recognizer/networks/misc.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/text_recognizer/networks/misc.py') diff --git a/src/text_recognizer/networks/misc.py b/src/text_recognizer/networks/misc.py index cac9e78..1f853e9 100644 --- a/src/text_recognizer/networks/misc.py +++ b/src/text_recognizer/networks/misc.py @@ -34,6 +34,7 @@ def activation_function(activation: str) -> Type[nn.Module]: """Returns the callable activation function.""" activation_fns = nn.ModuleDict( [ + ["elu", nn.ELU(inplace=True)], ["gelu", nn.GELU()], ["leaky_relu", nn.LeakyReLU(negative_slope=1.0e-2, inplace=True)], ["none", nn.Identity()], -- cgit v1.2.3-70-g09d2