diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-03 21:38:17 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-03 21:38:17 +0100 |
commit | 50fcf0ce31fdad608df26a483d80a83a5738b40f (patch) | |
tree | 395f9bff41e85f44c060dbf3f6fb4208e04daa29 | |
parent | 8dbee6e95fcf0cf76917d97e9dddca64a0a0a2ae (diff) |
chore: remove unused code block in lit trans model
-rw-r--r-- | text_recognizer/models/transformer.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/text_recognizer/models/transformer.py b/text_recognizer/models/transformer.py index 369361b..7272f46 100644 --- a/text_recognizer/models/transformer.py +++ b/text_recognizer/models/transformer.py @@ -56,13 +56,6 @@ class TransformerLitModel(BaseLitModel): loss = self.loss_fn(logits, targets[:, 1:]) self.log("val/loss", loss, prog_bar=True) - # Get the token prediction. - # pred = self(data) - # self.val_cer(pred, targets) - # self.log("val/cer", self.val_cer, on_step=False, on_epoch=True, prog_bar=True) - # self.val_acc(pred, targets) - # self.log("val/acc", self.val_acc, on_step=False, on_epoch=True) - def test_step(self, batch: Tuple[Tensor, Tensor], batch_idx: int) -> None: """Test step.""" data, targets = batch |