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]})" )