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

SongMASS lyrics infer error #172

Open
iMusicDorian opened this issue Oct 26, 2023 · 2 comments
Open

SongMASS lyrics infer error #172

iMusicDorian opened this issue Oct 26, 2023 · 2 comments

Comments

@iMusicDorian
Copy link

iMusicDorian commented Oct 26, 2023

I follow the instructions of SongMASS's readme and run lyrics infer. but get the error as below:
File "C:\Users\iMusic\AppData\Local\Programs\Python\Python38\lib\site-packages\fairseq_cli\generate.py", line 90, in _main
tgt_dict = task.target_dictionary
File "F:\muzic\songmass\mass\xmasked_seq2seq.py", line 504, in target_dictionary
return self.dicts[self.args.eval_lang_pair.split('-')[1]]
AttributeError: 'XMassTranslationTask' object has no attribute 'args'

My OS is Windows 10 and the python version is 3.8

@hsuxiang
Copy link

I follow the instructions of SongMASS's readme and run lyrics infer. but get the error as below: File "C:\Users\iMusic\AppData\Local\Programs\Python\Python38\lib\site-packages\fairseq_cli\generate.py", line 90, in _main tgt_dict = task.target_dictionary File "F:\muzic\songmass\mass\xmasked_seq2seq.py", line 504, in target_dictionary return self.dicts[self.args.eval_lang_pair.split('-')[1]] AttributeError: 'XMassTranslationTask' object has no attribute 'args'

My OS is Windows 10 and the python version is 3.8

Hello, have you fixed the problem yet? Cause I am in the same situation. Thank you a lot.

@liuhanzuo
Copy link

you should add self.args=args at the init() part
Meanwhile, you may also face the problem of "No module named TransformerDecoderLayer", you can fix this by changing fairseq.model.transformer into fairseq.module.transformer

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

3 participants