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

在config里添加stop_gradient #12105

Closed
ymy1005 opened this issue May 13, 2024 · 3 comments
Closed

在config里添加stop_gradient #12105

ymy1005 opened this issue May 13, 2024 · 3 comments
Assignees

Comments

@ymy1005
Copy link

ymy1005 commented May 13, 2024

微调det_v4时,在config文件里,添加配置stop_gradient:true,冻结层,有用吗

@UserWangZz
Copy link
Collaborator

在对应模块中冻结层

@ymy1005
Copy link
Author

ymy1005 commented May 13, 2024

在对应模块中冻结层

对,就是想在微调的时候冻结某些层,在yml文件里配置,起作用吗?还是说必须要在py文件里改代码才有用?

@UserWangZz
Copy link
Collaborator

需要在python代码中冻结,config文件中没用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants