From ce3f63801013aba2f05cfb92f1a3a87393610d27 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 19 Jun 2022 21:03:11 +0200 Subject: Fix variable names --- text_recognizer/models/transformer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'text_recognizer/models') diff --git a/text_recognizer/models/transformer.py b/text_recognizer/models/transformer.py index 7afe9bd..7686c4f 100644 --- a/text_recognizer/models/transformer.py +++ b/text_recognizer/models/transformer.py @@ -17,8 +17,8 @@ class LitTransformer(LitBase): self, network: Type[nn.Module], loss_fn: Type[nn.Module], - optimizer_configs: DictConfig, - lr_scheduler_configs: Optional[DictConfig], + optimizer_config: DictConfig, + lr_scheduler_config: Optional[DictConfig], mapping: EmnistMapping, max_output_len: int = 451, start_token: str = "", @@ -26,7 +26,7 @@ class LitTransformer(LitBase): pad_token: str = "

", ) -> None: super().__init__( - network, loss_fn, optimizer_configs, lr_scheduler_configs, mapping + network, loss_fn, optimizer_config, lr_scheduler_config, mapping ) self.max_output_len = max_output_len self.start_token = start_token -- cgit v1.2.3-70-g09d2