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

生成押韵歌词时出现错误 #25

Open
WqzGeorge opened this issue Dec 19, 2020 · 3 comments
Open

生成押韵歌词时出现错误 #25

WqzGeorge opened this issue Dec 19, 2020 · 3 comments

Comments

@WqzGeorge
Copy link

运行generate_paragraph.py时出现内存溢出,检查后发现在Generator的参数mode='infer'会出现这个问题。请问生成押韵歌词是要求很大的内存吗?还是哪里设置错了?

@TobiasLee
Copy link
Owner

可以把 batch size 调小试试?应该不用很多内存的

@WqzGeorge
Copy link
Author

好像是因为table太大了,pycharm有一些设置上的问题。
另外想问一下生成结果不太像歌词,而且20个字都生成了,这个问题是什么原因呢?

@TobiasLee
Copy link
Owner

  1. 可能是的 当时我们的机器有 16GB 的内存
  2. 语言模型没学好的概率比较大,可以考虑利用 MLE 训练一会

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