You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the demo code, update the lines to load the model as below:
model = get_model('vgg19')
wts_dict = torch.load(args.weight)
wts_dict_corrected = {k.replace('module.',''): v for k, v in wts_dict.items()}
model.load_state_dict(wts_dict_corrected)
In the demo code, update the lines to load the model as below:
model = get_model('vgg19')
wts_dict = torch.load(args.weight)
wts_dict_corrected = {k.replace('module.',''): v for k, v in wts_dict.items()}
model.load_state_dict(wts_dict_corrected)
Originally posted by @SaraSherinThomas in #145 (comment)
The text was updated successfully, but these errors were encountered: