(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1)))
| 319 | |
| 320 | @T.no_grad() |
| 321 | def next_audio_from_audio(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1))): |
| 322 | latents_in = self.tokenize(audio_data) |
| 323 | next_latents = self.next_latent(latents_in, temps) |
| 324 | next_model_latent = next_latents[..., self.c.latent_size:] |
| 325 | audio_decoded = self.untokenize(next_model_latent)[..., -2000:] |
| 326 | return audio_decoded |
| 327 | |
| 328 | |
| 329 | @T.no_grad() |
no test coverage detected