summaryrefslogtreecommitdiff
path: root/text_recognizer
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-19 20:58:36 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-19 20:58:36 +0200
commit8689e8da65ed02a13975956d70216d7f33db1688 (patch)
treeb5ce932f0db01ec3fe1bc0b634992a6c11e05c61 /text_recognizer
parent2a6f02f22a58d281519d3827ea956af5c02a8ea2 (diff)
Fix lr and optim conf
Diffstat (limited to 'text_recognizer')
-rw-r--r--text_recognizer/models/base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py
index 1ebb256..8dbdafa 100644
--- a/text_recognizer/models/base.py
+++ b/text_recognizer/models/base.py
@@ -20,16 +20,16 @@ class LitBase(LightningModule):
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,
) -> None:
super().__init__()
self.network = network
self.loss_fn = loss_fn
- self.optimizer_configs = optimizer_configs
- self.lr_scheduler_configs = lr_scheduler_configs
+ self.optimizer_config = optimizer_config
+ self.lr_scheduler_config = lr_scheduler_config
self.mapping = mapping
# Placeholders