Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
allow test for checkpoint from cfg.MODEL.WEIGHT (facebookresearch#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnqczhang authored and fmassa committed Jun 14, 2019
1 parent 01c3d0b commit 6bbaf85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def main():

output_dir = cfg.OUTPUT_DIR
checkpointer = DetectronCheckpointer(cfg, model, save_dir=output_dir)
_ = checkpointer.load(args.ckpt, use_latest=args.ckpt is None)
ckpt = cfg.MODEL.WEIGHT if args.ckpt is None else args.ckpt
_ = checkpointer.load(ckpt, use_latest=args.ckpt is None)

iou_types = ("bbox",)
if cfg.MODEL.MASK_ON:
Expand Down

0 comments on commit 6bbaf85

Please sign in to comment.