diff --git a/vall_e/models/base.py b/vall_e/models/base.py index 9e4e4e3..a9503ae 100755 --- a/vall_e/models/base.py +++ b/vall_e/models/base.py @@ -231,7 +231,7 @@ class Base(nn.Module): @property def stop_token(self): - if not self.causal or "len" not in self.capabilities: + if not self.causal and "len" not in self.capabilities: raise ValueError("Not using stop token!") return self.n_audio_tokens