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

如何在训练过程中进行调试和修改? #18

Closed
zhanpengGuan opened this issue Dec 5, 2022 · 1 comment
Closed

如何在训练过程中进行调试和修改? #18

zhanpengGuan opened this issue Dec 5, 2022 · 1 comment

Comments

@zhanpengGuan
Copy link

您好,我准备在模型上加入新的模块,并预备使用Darts框架(一种基于梯度的神经网络搜索架构)进行训练,在这个过程中将会涉及到不同模块的梯度更新公式的修改,以及对不同模块的相应训练迭代次数的设置,在代码中看来我似乎必须对Pytorch_lightning.trainer进行继承和修改?请问是否能在你们这里得到一些建议?不胜感激!

@Modberge
Copy link
Collaborator

Modberge commented Dec 8, 2022

您好,根据您的描述,你或许可以参考KGELitModel.py文件的内容,新建一个LitModel文件来自定义你的训练流程,你可以在LitModel类中通过self.current_epoch获取当前训练的迭代次数来选取合适的模块。希望这会对你有所帮助。

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