Skip to content

Commit

Permalink
removed strict eval
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriobonatti committed Jun 11, 2022
1 parent f560064 commit 53aef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushr_rhc_ros/src/rhcnode_network_pcl_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self, dtype, params, logger, name):
if len(saved_model_path_action)>3: # some small number, path must have more
checkpoint = torch.load(saved_model_path_action, map_location=device)
# old code for loading model
model.load_state_dict(checkpoint['state_dict'])
model.load_state_dict(checkpoint['state_dict'], strict=False)
# new code for loading mode
# new_checkpoint = OrderedDict()
# for key in checkpoint['state_dict'].keys():
Expand Down

0 comments on commit 53aef8d

Please sign in to comment.