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

This Pull resolves the issues with newer versions of Python and Pytorch #43

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update c2_model_loading.py
[Modification]: Bumped python to newer version
Extroverted-introvert authored Jul 20, 2021
commit 5dd346ec668c05baa108f4e284c3489b3ecf9020
2 changes: 1 addition & 1 deletion maskrcnn_benchmark/utils/c2_model_loading.py
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ def _rename_weights_for_resnet(weights, stage_names):

def _load_c2_pickled_weights(file_path):
with open(file_path, "rb") as f:
if torch._six.PY3:
if torch._six.PY37:
data = pickle.load(f, encoding="latin1")
else:
data = pickle.load(f)