From b405eef1b1b8c8360525c389d955524aefa3cdb8 Mon Sep 17 00:00:00 2001 From: Nguyen Van Anh Tuan Date: Tue, 25 Oct 2022 14:45:19 +0700 Subject: [PATCH] add logtext --- image2latex/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image2latex/model.py b/image2latex/model.py index d8bfb58..4e859e4 100644 --- a/image2latex/model.py +++ b/image2latex/model.py @@ -203,7 +203,7 @@ def test_step(self, batch, batch_idx): ) ) - if self.log_text and batch_idx % self.log_step == 0: + if True and batch_idx % self.log_step == 0: for truth, pred in zip(truths, predicts): print("=" * 20) print(f"Truth: [{' '.join(truth)}] | Predict: [{' '.join(pred)}]")