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

Exception has occurred: AttributeError module 'data' has no attribute 'KGC' #10

Closed
pony-m opened this issue Sep 1, 2022 · 3 comments
Closed

Comments

@pony-m
Copy link

pony-m commented Sep 1, 2022

运行main.py 报错:
Exception has occurred: AttributeError
module 'data' has no attribute 'KGC'

@CheaSim
Copy link
Collaborator

CheaSim commented Sep 2, 2022

We provide four models for you to run in the KGC and QA dataset. You can try to run the script under the scripts folder.
我们提供了脚本,可以选择你想运行的模型直接运行脚本即可。 墙裂推荐在看完模型和数据集后进行实验~

@pony-m
Copy link
Author

pony-m commented Sep 2, 2022

感谢回复。bash ./toolkit/scripts/simkgc/fb15k237.sh 出现以下报错:
pytorch_lightning.utilities.exceptions.MisconfigurationException: You have set both accumulate_grad_batches and passed an instance of GradientAccumulationScheduler inside callbacks. Either remove accumulate_grad_batches from trainer or remove GradientAccumulationScheduler from callbacks list.

请问如何解决

@CheaSim
Copy link
Collaborator

CheaSim commented Sep 2, 2022

奥, 把accumulate_grad_batches这个参数移除即可,因为pytorch_lightning 更新有点快,所以还没来得及改。

@zxlzr zxlzr closed this as completed Sep 8, 2022
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