Skip to content

Commit

Permalink
checkpoint_dir is a required argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sai8951 committed Dec 19, 2024
1 parent 5917023 commit 47c23d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch3dunet/unet3d/trainer.py
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ def __init__(self, model, optimizer, lr_scheduler, loss_criterion, eval_criterio
elif pre_trained is not None:
logger.info(f"Logging pre-trained model from '{pre_trained}'...")
utils.load_checkpoint(pre_trained, self.model, None)
if 'checkpoint_dir' not in kwargs:
if not self.checkpoint_dir:
self.checkpoint_dir = os.path.split(pre_trained)[0]

def fit(self):

0 comments on commit 47c23d1

Please sign in to comment.