diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-20 16:23:40 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-06-20 16:23:40 +0200 |
commit | c1a536c5969391541f8dd096580d4a797c3b4d2c (patch) | |
tree | 0fbae656c138f1aee96fe7599b83613aa48529b1 /text_recognizer | |
parent | efeca190eb62a7d0b470f02ae0fd07f0a3f11ef3 (diff) |
Fix configuration of lr scheduler
Diffstat (limited to 'text_recognizer')
-rw-r--r-- | text_recognizer/models/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py index 8dbdafa..70eb8dd 100644 --- a/text_recognizer/models/base.py +++ b/text_recognizer/models/base.py @@ -79,7 +79,7 @@ class LitBase(LightningModule): """Configures optimizer and lr scheduler.""" optimizer = self._configure_optimizer() scheduler = self._configure_lr_schedulers(optimizer) - return {"optimizer": optimizer, "scheduler": scheduler} + return {"optimizer": optimizer, "lr_scheduler": scheduler} def forward(self, data: Tensor) -> Tensor: """Feedforward pass.""" |