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

musicbert small for classification: cannot import name 'TransformerSentenceEncoder' from 'fairseq.models.roberta' #45

Closed
WJULYW opened this issue Mar 30, 2022 · 2 comments

Comments

@WJULYW
Copy link

WJULYW commented Mar 30, 2022

As title said, after i run 'bash train_genre.sh masd 25 4 checkpoints/checkpoint_last_musicbert_small.pt'.
It came out after i figure out last fairseq version issue(#37).

@WJULYW
Copy link
Author

WJULYW commented Mar 30, 2022

fixed out already, because of the conflict between the fairseq version installed by requirements.txt and the new-stalled version.
don't need to do an extra process as #37, just replace the line of fairseq in the requirements.txt by 'git+https://github.com/pytorch/fairseq@336942734c85791a90baa373c212d27e7c722662#egg=fairseq
'

@WJULYW WJULYW closed this as completed Mar 30, 2022
@TheFirstMonkey
Copy link

Check out the solution in this repo: facebookresearch/fairseq#1199 (comment)

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