Skip to content

Commit

Permalink
Fix checkpoint path argument
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Dec 20, 2023
1 parent 7f06c97 commit 8c6648f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/vision-transformer/unetr/livecell/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_unetr_model(
model = torch_em_models.UNETR(
backbone=backbone, encoder=model_name, out_channels=output_channels,
use_sam_stats=sam_initialization, final_activation="Sigmoid",
encoder_checkpoint_path=MODELS[model_name] if sam_initialization else None,
encoder_checkpoint=MODELS[model_name] if sam_initialization else None,
)

elif source_choice == "monai":
Expand Down

0 comments on commit 8c6648f

Please sign in to comment.