Skip to content

Commit

Permalink
fix weights loading cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
PatBall1 committed Jul 21, 2022
1 parent 1c2d971 commit 5f3aabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detectree2/models/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def setup_cfg(
cfg.OUTPUT_DIR = out_dir
os.makedirs(cfg.OUTPUT_DIR, exist_ok=True)
if update_model is not None:
cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url(update_model)
cfg.MODEL.WEIGHTS = update_model # DOESN'T WORK
else:
cfg.MODEL.WEIGHTS = model_zoo.get_checkpoint_url(base_model)

Expand Down

0 comments on commit 5f3aabc

Please sign in to comment.