You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/12 11:07:35 UTC
[GitHub] [incubator-mxnet] braindotai commented on issue #15496: Loaded
pretrained model but train accuracy starts from zero,
braindotai commented on issue #15496: Loaded pretrained model but train accuracy starts from zero,
URL: https://github.com/apache/incubator-mxnet/issues/15496#issuecomment-510847042
Below code should work
```python
model.save_checkpoint('model', epoch = 0)
sym, arg_params, aux_params = mx.model.load_checkpoint('model', epoch = 0)
model = mx.mod.Module(sym, context = mx.gpu())
model.bind(data_shapes = train_data.provide_data, label_shapes = train_data.provide_label)
model.set_params(arg_params, aux_params)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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