From 50fcf0ce31fdad608df26a483d80a83a5738b40f Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 3 Feb 2022 21:38:17 +0100 Subject: chore: remove unused code block in lit trans model --- text_recognizer/models/transformer.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'text_recognizer/models') 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 -- cgit v1.2.3-70-g09d2