Skip to content

Commit

Permalink
flip axis y in mel
Browse files Browse the repository at this point in the history
  • Loading branch information
lpscr committed Oct 29, 2024
1 parent d5c307b commit 0be49f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/f5_tts/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def normalize_and_colorize_spectrogram(mel_org):
mel_norm = (mel_org - mel_min) / (mel_max - mel_min + 1e-8)
mel_colored = plt.get_cmap("viridis")(mel_norm.detach().cpu().numpy())[:, :, :3]
mel_colored = np.transpose(mel_colored, (2, 0, 1))
mel_colored = np.flip(mel_colored, axis=1)
return mel_colored


Expand Down

0 comments on commit 0be49f4

Please sign in to comment.