HappyColor / SpeechFormer

Official implement of SpeechFormer written in Python (PyTorch).
72 stars 7 forks source link

extract_wav2vec.py pre_trained model problem #9

Open alireza0r opened 6 months ago

alireza0r commented 6 months ago

Hi, I want to extract features by extract_wav2vec.py code and I've selected a lot of pre-trained wav2vec models but all of them had problem. For example while I am using https://dl.fbaipublicfiles.com/fairseq/wav2vec/vq-wav2vec_kmeans.pt model from https://github.com/facebookresearch/fairseq/tree/main/examples/wav2vec site. I have this problem: if cfg.activation == "relu": AttributeError: 'Namespace' object has no attribute 'activation'

And for other models I give similar error about args.

How can I solve it ? Thanks.

mayapony commented 2 months ago

use this link https://dl.fbaipublicfiles.com/fairseq/wav2vec/wav2vec_large.pt