mirror of
https://github.com/wassname/TTS.git
synced 2026-10-01 11:50:59 +08:00
plot fix
This commit is contained in:
1 parent
8e7a15f07b
commit
d5bbcd0487
3 files changed
+9
-10
No files matched your search
@@ -13,8 +13,8 @@ def plot_results(y_hat, y, ap, global_step, name_prefix):
|
||||
y_hat = y_hat[0].squeeze(0).detach().cpu().numpy()
|
||||
y = y[0].squeeze(0).detach().cpu().numpy()
|
||||
|
||||
spec_fake = ap.spectrogram(y_hat).T
|
||||
spec_real = ap.spectrogram(y).T
|
||||
spec_fake = ap.melspectrogram(y_hat).T
|
||||
spec_real = ap.melspectrogram(y).T
|
||||
spec_diff = np.abs(spec_fake - spec_real)
|
||||
|
||||
# plot figure and save it
|
||||
@@ -98,5 +98,5 @@ def setup_discriminator(c):
|
||||
return model
|
||||
|
||||
|
||||
# def check_config(c):
|
||||
# pass
|
||||
def check_config(c):
|
||||
pass
|
||||
Reference in new issue
Block a user