summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-11 22:12:54 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-11 22:12:54 +0200
commit20d7904ece1a8bee8fa9ecf5766496cbbf6633e2 (patch)
treed997f48c5bcc7850c60e02975779405735d789dd /training
parentde33b8759c908c1495594a7d656d3c9f1b932b34 (diff)
Add mapping to lit model
Diffstat (limited to 'training')
-rw-r--r--training/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/run.py b/training/run.py
index 06426e0..0e17b4e 100644
--- a/training/run.py
+++ b/training/run.py
@@ -14,7 +14,6 @@ from pytorch_lightning import (
from pytorch_lightning.loggers import LightningLoggerBase
from torch import nn
from torchinfo import summary
-from text_recognizer.data.base_mapping import AbstractMapping
import utils
@@ -40,6 +39,7 @@ def run(config: DictConfig) -> Optional[float]:
model: LightningModule = hydra.utils.instantiate(
config.model,
network=network,
+ mapping=datamodule.mapping,
loss_fn=loss_fn,
optimizer_configs=config.optimizers,
lr_scheduler_configs=config.lr_schedulers,