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

about train and inference #5

Open
lichunxiang93 opened this issue May 8, 2019 · 1 comment
Open

about train and inference #5

lichunxiang93 opened this issue May 8, 2019 · 1 comment

Comments

@lichunxiang93
Copy link

should i close switch of weight standardization when inference?

@joe-siyuan-qiao
Copy link
Owner

Thanks for your interest in WS.

WS uses the same code for training and inference as we have provided in this repo, so you do not need to worry about switching on/off WS for inference. Our implementation of imagenet classification is a good reference for how to use WS in training and inference. The increase in computation time or memory usage brought by WS is also neglectable, so we recommend using our provided codes. But if you'd like to change WS to non-WS convolution for inference, you can do that by replacing the weights (in Conv with WS) with the standardized weights and do non-WS Conv computation. However, this may cause problems if you need to fine-tune the models (or continue training) in the future.

Thanks.

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