Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XiandaGuo authored Apr 3, 2024
1 parent e3dbc69 commit b9d1f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstereo/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def convert_state_dict(ori_state_dict, is_dist=True):
new_state_dict = ori_state_dict
else:
for k, v in ori_state_dict.items():
k = k.replace('module.', '')
k = k[7:]
new_state_dict[k] = v

return new_state_dict
Expand Down

0 comments on commit b9d1f45

Please sign in to comment.