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

输出权重为什么不是二值化的 #4

Open
feifanzui opened this issue Oct 4, 2018 · 3 comments
Open

输出权重为什么不是二值化的 #4

feifanzui opened this issue Oct 4, 2018 · 3 comments

Comments

@feifanzui
Copy link

我用python输出了训练得到的model,为什么权重都是小数,不是+1 -1 啊

@liuzechun
Copy link
Owner

You need to set the weights to -1 and 1 in the convolution layers and also freeze the learning rate. Then you retrain the BatchNorm layer to absorb the scaling factor.

@Lovegood-1
Copy link

You need to set the weights to -1 and 1 in the convolution layers and also freeze the learning rate. Then you retrain the BatchNorm layer to absorb the scaling factor.

excuse me, is what you said had been included in your code?

@lihengxia
Copy link

You need to set the weights to -1 and 1 in the convolution layers and also freeze the learning rate. Then you retrain the BatchNorm layer to absorb the scaling factor.

How to constraint the weights to -1 and 1?And, how to retrain the BatchNorm layer to absorb the scaling factor?

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

4 participants