From 0ff58acd588072ca582165add120692843a77251 Mon Sep 17 00:00:00 2001 From: litagin02 Date: Wed, 3 Jan 2024 14:28:36 +0900 Subject: [PATCH] Add dbscan style clustering notebook --- common/tts_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tts_model.py b/common/tts_model.py index 05c32c3..0b5c67d 100644 --- a/common/tts_model.py +++ b/common/tts_model.py @@ -48,7 +48,7 @@ class Model: self.style_vectors: np.ndarray = np.load(self.style_vec_path) if self.style_vectors.shape[0] != self.num_styles: - logger.warning( + raise ValueError( f"The number of styles ({self.num_styles}) does not match the number of style vectors ({self.style_vectors.shape[0]})" )