Skip to content

Commit

Permalink
add on the ly dataloading to training summary
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzLamm committed Sep 21, 2024
1 parent 0ac5a41 commit 69eb85e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ def print_training_parameters(
log_dir: str = "logs/",
batch_size: int = 2,
num_workers: int = 8,
on_the_fly_dataloading: bool = False,
max_epochs: int = 1000,
aug_prob_to_one: bool = False,
use_deep_supervision: bool = False,
Expand All @@ -25,6 +26,8 @@ def print_training_parameters(
Number of samples per batch of input data.
num_workers : int, optional
Number of subprocesses to use for data loading.
on_the_fly_dataloading : bool, optional
If True, data is loaded on the fly.
max_epochs : int, optional
Maximum number of epochs to train for.
aug_prob_to_one : bool, optional
Expand Down Expand Up @@ -68,6 +71,12 @@ def print_training_parameters(
"loading.".format(num_workers)
)
print("————————————————————————————————————————————————————————")
on_the_fly_status = "Enabled" if on_the_fly_dataloading else "Disabled"
print(
"On-the-Fly Data Loading:\n {} \n If enabled, data is loaded on "
"the fly.".format(on_the_fly_status)
)
print("————————————————————————————————————————————————————————")
print(f"Max Epochs:\n {max_epochs} \n Maximum number of training epochs.")
print("————————————————————————————————————————————————————————")
aug_status = "Enabled" if aug_prob_to_one else "Disabled"
Expand Down

0 comments on commit 69eb85e

Please sign in to comment.