From 7f1e2695f24791ea9ebfa9f9301a3e38e0b2b82c Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 2 Jan 2025 10:12:33 +0800 Subject: [PATCH] rename tostring_argb to tostring_rgb --- egs/ljspeech/TTS/vits/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/ljspeech/TTS/vits/utils.py b/egs/ljspeech/TTS/vits/utils.py index 137d86c79..6a067f596 100644 --- a/egs/ljspeech/TTS/vits/utils.py +++ b/egs/ljspeech/TTS/vits/utils.py @@ -113,7 +113,7 @@ def plot_feature(spectrogram): plt.tight_layout() fig.canvas.draw() - data = np.fromstring(fig.canvas.tostring_argb(), dtype=np.uint8, sep="") + data = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8, sep="") data = data.reshape(fig.canvas.get_width_height()[::-1] + (3,)) plt.close() return data