diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-10-11 22:12:54 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-10-11 22:12:54 +0200 |
commit | 20d7904ece1a8bee8fa9ecf5766496cbbf6633e2 (patch) | |
tree | d997f48c5bcc7850c60e02975779405735d789dd | |
parent | de33b8759c908c1495594a7d656d3c9f1b932b34 (diff) |
Add mapping to lit model
-rw-r--r-- | training/run.py | 2 |
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, |