From 34b232927ecef3b0a8e2c84c9d819c7296c098a6 Mon Sep 17 00:00:00 2001 From: mrq Date: Sun, 19 Feb 2023 01:54:21 +0000 Subject: [PATCH] Oops --- tortoise/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tortoise/api.py b/tortoise/api.py index e4babca..7ff3621 100755 --- a/tortoise/api.py +++ b/tortoise/api.py @@ -281,7 +281,7 @@ class TextToSpeech: def load_autoregressive_model(self, autoregressive_model_path): previous_path = self.autoregressive_model_path - self.autoregressive_model_path = autoregressive_model_path if autoregressive_model_path and os.path.exists(autoregressive_model_path) else get_model_path('autoregressive.pth', models_dir) + self.autoregressive_model_path = autoregressive_model_path if autoregressive_model_path and os.path.exists(autoregressive_model_path) else get_model_path('autoregressive.pth', self.models_dir) del self.autoregressive self.autoregressive = UnifiedVoice(max_mel_tokens=604, max_text_tokens=402, max_conditioning_inputs=2, layers=30,