-
-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error occurs: INTERNAL SERVER ERROR #263
Comments
完整报错 |
尝试一下,transformers的版本使用4.41.2 |
可以了,感谢大佬 |
linux执行报错,这是为啥呀
ERROR in app: Exception on /tts [POST]
Traceback (most recent call last):
File "/home/venv/lib/python3.9/site-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
File "/home/venv/lib/python3.9/site-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/venv/lib/python3.9/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/home/venv/lib/python3.9/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/app/app.py", line 264, in tts
wavs = chat.infer(
File "/app/ChatTTS/core.py", line 233, in infer
return next(res_gen)
File "/app/ChatTTS/core.py", line 386, in _infer
for result in self._infer_code(
File "/home/venv/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/app/ChatTTS/core.py", line 511, in _infer_code
input_ids, attention_mask, text_mask = self.tokenizer.encode(
File "/home/venv/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/app/ChatTTS/model/tokenizer.py", line 59, in encode
x = self._tokenizer.encode_plus(
File "/home/venv/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 3037, in encode_plus
padding_strategy, truncation_strategy, max_length, kwargs = self._get_padding_truncation_strategies(
File "/home/venv/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 2761, in _get_padding_truncation_strategies
if padding_strategy != PaddingStrategy.DO_NOT_PAD and (self.pad_token is None or self.pad_token_id < 0):
File "/home/venv/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 1104, in getattr
raise AttributeError(f"{self.class.name} has no attribute {key}")
AttributeError: BertTokenizerFast has no attribute pad_token
The text was updated successfully, but these errors were encountered: