Skip to content

on windows 10: OSError: Can't load tokenizer for 'facebook/wav2vec2-large-xlsr-53' #5

@linhcentrio

Description

@linhcentrio

`(D:\Talking_head\MultiTalk-Code\venv) D:\Talking_head\MultiTalk-Code>scripts\demo.bat multi
Some weights of the model checkpoint at facebook/wav2vec2-large-xlsr-53 were not used when initializing Wav2Vec2Model: ['quantizer.weight_proj.bias', 'quantizer.codevectors', 'quantizer.weight_proj.weight', 'project_hid.weight', 'project_q.weight', 'project_hid.bias', 'project_q.bias']

  • This IS expected if you are initializing Wav2Vec2Model from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).

  • This IS NOT expected if you are initializing Wav2Vec2Model from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
    => loading checkpoint 'checkpoints/stage2.pth.tar'
    => loaded checkpoint 'checkpoints/stage2.pth.tar'
    Generating facial animation for demo/input\English_WTT5UTZQ9K8_8.wav...
    Traceback (most recent call last):
    File "main\demo_dir.py", line 224, in
    main()
    File "main\demo_dir.py", line 135, in main
    test(model, cfg.demo_wav_dir_path, save_folder, condition, subject)
    File "main\demo_dir.py", line 173, in test
    processor = Wav2Vec2Processor.from_pretrained(cfg.wav2vec2model_path)
    File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\transformers\models\wav2vec2\processing_wav2vec2.py", line 105, in from_pretrained
    tokenizer = Wav2Vec2CTCTokenizer.from_pretrained(pretrained_model_name_or_path, **kwargs)
    File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1708, in from_pretrained
    raise EnvironmentError(msg)
    OSError: Can't load tokenizer for 'facebook/wav2vec2-large-xlsr-53'. Make sure that:

  • 'facebook/wav2vec2-large-xlsr-53' is a correct model identifier listed on 'https://huggingface.co/models'

  • or 'facebook/wav2vec2-large-xlsr-53' is the correct path to a directory containing relevant tokenizer files`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions