mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Fix unit tests
This commit is contained in:
@@ -134,8 +134,8 @@ class TestVits(unittest.TestCase):
|
||||
|
||||
ref_inp = torch.randn(1, 513, spec_len)
|
||||
ref_inp_len = torch.randint(1, spec_effective_len, (1,))
|
||||
ref_spk_id = torch.randint(1, num_speakers, (1,))
|
||||
tgt_spk_id = torch.randint(1, num_speakers, (1,))
|
||||
ref_spk_id = torch.randint(1, num_speakers, (1,)).item()
|
||||
tgt_spk_id = torch.randint(1, num_speakers, (1,)).item()
|
||||
o_hat, y_mask, (z, z_p, z_hat) = model.voice_conversion(ref_inp, ref_inp_len, ref_spk_id, tgt_spk_id)
|
||||
|
||||
self.assertEqual(o_hat.shape, (1, 1, spec_len * 256))
|
||||
|
||||
Reference in New Issue
Block a user