Skip to content
Merged
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
5 changes: 5 additions & 0 deletions ScaFFold/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ def main():
benchmark_parser.add_argument(
"--batch-size", type=int, nargs="+", help="Batch sizes for each volume size."
)
benchmark_parser.add_argument(
"--warmup-batches",
type=int,
help="Number of warmup batches to run per rank before training.",
)
benchmark_parser.add_argument(
"--optimizer",
type=str,
Expand Down
4 changes: 2 additions & 2 deletions ScaFFold/configs/benchmark_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ framework: "torch" # The DL framework to train with. Only valid
checkpoint_dir: "checkpoints" # Subfolder in which to save training checkpoints.
loss_freq: 1 # Number of epochs between logging the overall loss.
normalize: 1 # Cateogry search normalization parameter
warmup_epochs: 1 # How many warmup epochs before training
warmup_batches: 5 # How many warmup batches per rank to run before training.
dataset_reuse_enforce_commit_id: 0 # Enforce matching commit IDs for dataset reuse.
target_dice: 0.95
target_dice: 0.95
2 changes: 1 addition & 1 deletion ScaFFold/configs/benchmark_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ framework: "torch" # The DL framework to train with. Only valid
checkpoint_dir: "checkpoints" # Subfolder in which to save training checkpoints.
loss_freq: 1 # Number of epochs between logging the overall loss.
normalize: 1 # Cateogry search normalization parameter
warmup_epochs: 1 # How many warmup epochs before training
warmup_batches: 5 # How many warmup batches per rank to run before training.
dataset_reuse_enforce_commit_id: 0 # Enforce matching commit IDs for dataset reuse.
target_dice: 0.95
2 changes: 1 addition & 1 deletion ScaFFold/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, config_dict):
self.loss_freq = config_dict["loss_freq"]
self.checkpoint_dir = config_dict["checkpoint_dir"]
self.normalize = config_dict["normalize"]
self.warmup_epochs = config_dict["warmup_epochs"]
self.warmup_batches = config_dict.get("warmup_batches")
self.dataset_reuse_enforce_commit_id = config_dict[
"dataset_reuse_enforce_commit_id"
]
Expand Down
Loading
Loading