3D-ResNets-PyTorch icon indicating copy to clipboard operation
3D-ResNets-PyTorch copied to clipboard

training with the pretrained model 'resnext-101-kinetics-hmdb51_split1.pth', cannot success

Open cs-heibao opened this issue 5 years ago • 2 comments

` if opt.resume_path: print('loading checkpoint {}'.format(opt.resume_path)) checkpoint = torch.load(opt.resume_path) assert opt.arch == checkpoint['arch']

    opt.begin_epoch = checkpoint['epoch']
    model.load_state_dict(checkpoint['state_dict'],strict=False)
    if not opt.no_train:
        optimizer.load_state_dict(checkpoint['optimizer'])

` the last line 'optimizer.load_state_dict(checkpoint['optimizer'])' cannot success, and the error is ValueError: loaded state dict has a different number of parameter groups

hope to give some instructions, thanks!

cs-heibao avatar Nov 01 '19 13:11 cs-heibao

the problem is solved, thanks

cs-heibao avatar Nov 02 '19 11:11 cs-heibao

hi @cs-heibao , may i know how you solve your issue? thanks.

UPDATE: i solve this by looking at this answer if anyone experience the same.

sudonto avatar May 08 '20 02:05 sudonto