Skip to content

Commit

Permalink
messed up by removing not
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Apr 9, 2024
1 parent 195badf commit 9d0aa83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def setup_training(args: argparse.Namespace):

trainer = Trainer(cfg=cfg)
if not cfg.TRAIN.WEIGHTS:
if cfg.MODEL.RESUME and trainer.checkpointer.has_checkpoint():
if cfg.MODEL.RESUME and not trainer.checkpointer.has_checkpoint():
raise FileNotFoundError(f"No checkpoint found in {cfg.OUTPUT_DIR}")
trainer.resume_or_load(resume=cfg.MODEL.RESUME)
else:
Expand Down

0 comments on commit 9d0aa83

Please sign in to comment.