summaryrefslogtreecommitdiff
path: root/text_recognizer/models/base.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-09 22:30:45 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-09 22:30:45 +0200
commit316c6a456c9b9f1964f77e8ba016651405c6f9c0 (patch)
treed877b1eb429820ccf5bb0a0426358910597d203a /text_recognizer/models/base.py
parenta96fa058827b739238972569f7c559c75ba6514f (diff)
Remove abstract mapping
Diffstat (limited to 'text_recognizer/models/base.py')
-rw-r--r--text_recognizer/models/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/text_recognizer/models/base.py b/text_recognizer/models/base.py
index 77c5509..886394d 100644
--- a/text_recognizer/models/base.py
+++ b/text_recognizer/models/base.py
@@ -10,7 +10,7 @@ from torch import nn
from torch import Tensor
from torchmetrics import Accuracy
-from text_recognizer.data.mappings.base import AbstractMapping
+from text_recognizer.data.mappings.base import EmnistMapping
class LitBase(LightningModule):
@@ -22,7 +22,7 @@ class LitBase(LightningModule):
loss_fn: Type[nn.Module],
optimizer_configs: DictConfig,
lr_scheduler_configs: Optional[DictConfig],
- mapping: Type[AbstractMapping],
+ mapping: Type[EmnistMapping],
) -> None:
super().__init__()