diff --git a/dan/ocr/decoder.py b/dan/ocr/decoder.py index bd1044d7f31440992f47a5c6f5ffc6ec7c356ce7..6f635ee0a216f4e5788796a959090be9000d1049 100644 --- a/dan/ocr/decoder.py +++ b/dan/ocr/decoder.py @@ -516,8 +516,6 @@ class CTCLanguageDecoder: Add CTC frames between each characters to avoid duplicate removal """ batch_size, _, n_tokens = batch_features.shape - torch.clone(batch_features) - # visualize_debug(batch_features.exp()[0, :batch_frames[0], :].numpy(), "probs.jpg", False) # Create tensor with high probability CTC token high_prob = 0.99