szha commented on issue #14017: Loading parameters from pretrained gluon model
URL: https://github.com/apache/incubator-mxnet/issues/14017#issuecomment-459832236
An easier way is to load all parameters and force randomly reinitialize the layers you
want to train. For example:
```
model.load_parameters(...)
model.classifier.initialize('uniform', force_reinit=True)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
|