Skip to content

Commit 412883a

Browse files
Fix bug in testing. Performance was zero as no normalization was applied to input data.
1 parent 2c6591f commit 412883a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from argparse import ArgumentParser, Namespace
22
from itertools import groupby
3-
from typing import Dict, Any, List, Tuple
43
from pathlib import Path
4+
from typing import Dict, Any, List, Tuple
55

66
import Levenshtein as lv
77
import numpy as np
@@ -88,6 +88,7 @@ def create_dataloader(args: Namespace, verbose: bool = False) -> Dict[str, DataL
8888
'test': transforms.Compose([
8989
transforms.Resize((width, height)),
9090
transforms.ToTensor(),
91+
transforms.Normalize([0.6205, 0.6205, 0.6205], [0.1343, 0.1343, 0.1343])
9192
]),
9293
}
9394

0 commit comments

Comments
 (0)