summaryrefslogtreecommitdiff
path: root/text_recognizer/models
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-30 23:01:00 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-08-30 23:01:00 +0200
commit276c24bdc4817f2817b47b7a3a6bcfd9bb47b2ef (patch)
treed7432951258e6473face3ad45bee04c5dad39235 /text_recognizer/models
parentca7e91a2a97dc54b8201cc7d0b1ce3eb4a3ee1bd (diff)
Bug fix when loading no lr scheduler
Diffstat (limited to 'text_recognizer/models')
-rw-r--r--text_recognizer/models/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py
index 56d4ca5..57d319e 100644
--- a/text_recognizer/models/base.py
+++ b/text_recognizer/models/base.py
@@ -63,7 +63,7 @@ class BaseLitModel(LightningModule):
self, optimizers: List[Type[torch.optim.Optimizer]]
) -> List[Dict[str, Any]]:
"""Configures the lr scheduler."""
- if None in self.lr_scheduler_configs:
+ if self.lr_scheduler_configs is None:
return []
schedulers = []
for optimizer, lr_scheduler_config in zip(