(self)
| 325 | self.assertTrue(test_audios is not None) |
| 326 | |
| 327 | def test_load_checkpoint(self): |
| 328 | chkp_path = os.path.join(get_tests_output_path(), "dummy_glow_tts_checkpoint.pth") |
| 329 | config = GlowTTSConfig(num_chars=32) |
| 330 | model = GlowTTS.init_from_config(config, verbose=False).to(device) |
| 331 | chkp = {} |
| 332 | chkp["model"] = model.state_dict() |
| 333 | torch.save(chkp, chkp_path) |
| 334 | model.load_checkpoint(config, chkp_path) |
| 335 | self.assertTrue(model.training) |
| 336 | model.load_checkpoint(config, chkp_path, eval=True) |
| 337 | self.assertFalse(model.training) |
| 338 | |
| 339 | def test_get_criterion(self): |
| 340 | config = GlowTTSConfig(num_chars=32) |
nothing calls this directly
no test coverage detected