nii-yamagishilab / PartialSpoof

BSD 3-Clause "New" or "Revised" License
27 stars 2 forks source link

how to #4

Closed ring-zl closed 5 months ago

ring-zl commented 6 months ago

ValueError: /data/***/PartialSpoof_countmeasure//modules/ssl_pretrain/wav2vec_small.pt is not a valid checkpoint since the required key: task_cfg is missing

GeWanying commented 5 months ago

Hi,

I met the same issue a few days before. Can you try to download the s3prl code from the link this repo re-directs (here) and install it manually, rather than installing the newest s3prl like pip install s3prl.

I guess this problem happens because this repo is built on a previous version of s3prl, and the way how s3prl loads wav2vec model changed a bit in the newest version. The exact codes are, the way PartialSpoof uses here, and the way the newest s3prl version does here and here.

zlin0 commented 5 months ago

@ring-zl Hi, sorry for missing your issue. Please follow Prepare and install the corresponding version of s3prl as Wanying suggested. (Thanks Wanying!

I will close your question. If you have any further questions, please feel free to reopen it and ask here.