Skip to content

Commit

Permalink
acoustic: Fix return shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
revsic committed Feb 9, 2022
1 parent a2e3e65 commit 465fb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speeches/acoustic.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def collate(self, bunch: List[Tuple[np.ndarray, np.ndarray]]) \
# [B, T, mel]
mel = np.stack(
[np.pad(spec, [[0, mellen.max() - len(spec)], [0, 0]]) for _, spec in bunch])
return mel, text, textlen, mellen
return text, mel, textlen, mellen

0 comments on commit 465fb53

Please sign in to comment.