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

extract_features AssertionError #44

Open
okmoments opened this issue Aug 27, 2024 · 1 comment
Open

extract_features AssertionError #44

okmoments opened this issue Aug 27, 2024 · 1 comment

Comments

@okmoments
Copy link

Traceback (most recent call last):
File "/mnt/XXL/emotion2vec-large/scripts/extract_features.py", line 70, in
main()
File "/mnt/XXL/emotion2vec-large/scripts/extract_features.py", line 39, in main
model, cfg, task = fairseq.checkpoint_utils.load_model_ensemble_and_task([checkpoint_dir])
File "/mnt/XXL/env/emotion2vec/lib/python3.9/site-packages/fairseq/checkpoint_utils.py", line 436, in load_model_ensemble_and_task
task = tasks.setup_task(cfg.task)
File "/mnt/XXL/env/emotion2vec/lib/python3.9/site-packages/fairseq/tasks/init.py", line 42, in setup_task
assert (
AssertionError: Could not infer task type from {'_name': 'd2v_audio_classification', 'data': '/data/volume1/gaochangfeng.gcf/project/emo/fairseq_pai/examples/emo2vec/manifest/emo_box_fix', 'labels': 'lbl', ...

Is there any mismatch of code env? fairseq=0.12.2, torch=1.13.1

@ddlBoJack
Copy link
Owner

please follow the instruction to extract the features

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