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

is it a bug? #72

Open
liurongdev opened this issue Dec 25, 2018 · 0 comments
Open

is it a bug? #72

liurongdev opened this issue Dec 25, 2018 · 0 comments

Comments

@liurongdev
Copy link

liurongdev commented Dec 25, 2018

in the file train_end2end.py

if config.TRAIN.RESUME:
       print('continue training from ', begin_epoch)
       arg_params, aux_params = load_param(prefix, begin_epoch, convert=True)

but do_checkpoint is iter_no+1

def do_checkpoint(prefix, means, stds):
    def _callback(iter_no, sym, arg, aux):
        mx.model.save_checkpoint(prefix, iter_no + 1, sym, arg, aux)
    return _callback

if config file train.resume==true the program cannot find the right model file
so l change the code ,make begin_epoch+1

 if config.TRAIN.RESUME:
      print('continue training from ', begin_epoch)
      arg_params, aux_params = load_param(prefix, begin_epoch+1, convert=True)

and it work right
Attachment as shown
model
@YuwenXiong @ancientmooner @cddlyf @liaojing @liurongdev

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

1 participant