Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nnunetv2/inference/predict_from_raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def initialize_from_trained_model_folder(self, model_training_output_dir: str,
for i, f in enumerate(use_folds):
f = int(f) if f != 'all' else f
checkpoint = torch.load(join(model_training_output_dir, f'fold_{f}', checkpoint_name),
map_location=torch.device('cpu'))
map_location=torch.device('cpu'),weights_only=False)
if i == 0:
trainer_name = checkpoint['trainer_name']
configuration_name = checkpoint['init_args']['configuration']
Expand Down
2 changes: 1 addition & 1 deletion nnunetv2/training/lr_scheduler/polylr.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def __init__(self, optimizer, initial_lr: float, max_steps: int, exponent: float
self.max_steps = max_steps
self.exponent = exponent
self.ctr = 0
super().__init__(optimizer, current_step if current_step is not None else -1, False)
super().__init__(optimizer, current_step if current_step is not None else -1)

def step(self, current_step=None):
if current_step is None or current_step == -1:
Expand Down