Skip to content

Commit

Permalink
Specify weights when loading the model in the pkl to pb conversion tool
Browse files Browse the repository at this point in the history
Reviewed By: rbgirshick

Differential Revision: D7484464

fbshipit-source-id: f92804fedc3ae040e585e7c0c2eb3e44526eef22
  • Loading branch information
ir413 authored and facebook-github-bot committed Apr 3, 2018
1 parent 22636d4 commit 1d67750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/convert_pkl_to_pb.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _save_models(all_net, all_init_net, args):


def load_model(args):
model = test_engine.initialize_model_from_cfg()
model = test_engine.initialize_model_from_cfg(cfg.TEST.WEIGHTS)
blobs = mutils.get_ws_blobs()

return model, blobs
Expand Down

0 comments on commit 1d67750

Please sign in to comment.