This model can't load

#4
by asago - opened

HI .
This model can't load.
I get an error while loading.

======
The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.
The tokenizer class you load from this checkpoint is 'SpeechT5OpenjtalkTokenizer'.
The class this function is called from is 'SpeechT5Tokenizer'.

TypeError Traceback (most recent call last)
in <cell line: 2>()
1 from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech,AutoProcessor
----> 2 processor = SpeechT5Processor.from_pretrained("esnya/japanese_speecht5_tts")
3 model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")

6 frames
/usr/local/lib/python3.10/dist-packages/sentencepiece/init.py in LoadFromFile(self, arg)
314
315 def LoadFromFile(self, arg):
--> 316 return _sentencepiece.SentencePieceProcessor_LoadFromFile(self, arg)
317
318 def _EncodeAsIds(self, text, enable_sampling, nbest_size, alpha, add_bos, add_eos, reverse, emit_unk_piece):

TypeError: not a string

Sign up or log in to comment