Skip to content
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

prepare label error #23

Open
lzhin opened this issue Apr 11, 2024 · 1 comment
Open

prepare label error #23

lzhin opened this issue Apr 11, 2024 · 1 comment

Comments

@lzhin
Copy link

lzhin commented Apr 11, 2024

when I run python3 prepare_labels.py --pre ../pretrained_models/teacher1/model.pth csv_labels/balanced.csv softlabels/hdf5/balanced.h5 softlabels/csv/balanced.csv
I find a error ,the encoders/balanced.pth not exist. I download https://github.com/RicherMans/GPV/blob/master/pretrained/gpv_f.pth to encoders/balanced.pth according to the other issues. But have the error encoder has not classes_

@RicherMans
Copy link
Owner

Hey,
Sorry that at that time I wrote some rather unreasonable code.
As the code says, its only intended to be used for the teacher logits.
As the README says, run:

python3 prepare_labels.py --pre ../pretrained_models/teacher1/model.pth csv_labels/balanced.csv softlabels/hdf5/balanced.h5 softlabels/csv/balanced.csv

For other models as far as I remember just map 1 to the speech class.
Kind regards,
Heinrich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants