Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianIsensee committed Apr 12, 2022
1 parent 5e154f1 commit 6d02b5a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion documentation/common_questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ iterations each (250000 iterations). The training time thus scales approximately
know what you are doing! Again, training times will be increased if you do this! 3) is a better way of increasing the
patch size.

3) Run `nnUNet_plan_and_preprocess` with a larger GPU memory budget. This will make nnU-Net plan for larger batch sizes
3) Run `nnUNet_plan_and_preprocess` with a larger GPU memory budget. This will make nnU-Net plan for larger patch sizes
during experiment planning. Doing this can change the patch size, network topology, the batch size as well as the
presence of the U-Net cascade. To run with a different memory budget, you need to specify a different experiment planner, for example
`nnUNet_plan_and_preprocess -t TASK_ID -pl2d None -pl3d ExperimentPlanner3D_v21_32GB` (note that `-pl2d None` will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def plan_experiment(self):
:return:
"""
use_nonzero_mask_for_normalization = self.determine_whether_to_use_mask_for_norm()
print("Are we using the nonzero mask for normalizaion?", use_nonzero_mask_for_normalization)
print("Are we using the nonzero mask for normalization?", use_nonzero_mask_for_normalization)
spacings = self.dataset_properties['all_spacings']
sizes = self.dataset_properties['all_sizes']

Expand Down Expand Up @@ -132,7 +132,7 @@ def plan_experiment(self):
:return:
"""
use_nonzero_mask_for_normalization = self.determine_whether_to_use_mask_for_norm()
print("Are we using the nonzero mask for normalizaion?", use_nonzero_mask_for_normalization)
print("Are we using the nonzero mask for normalization?", use_nonzero_mask_for_normalization)
spacings = self.dataset_properties['all_spacings']
sizes = self.dataset_properties['all_sizes']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_properties_for_stage(self, current_spacing, original_spacing, original_s

def plan_experiment(self):
use_nonzero_mask_for_normalization = self.determine_whether_to_use_mask_for_norm()
print("Are we using the nonzero mask for normalizaion?", use_nonzero_mask_for_normalization)
print("Are we using the nonzero mask for normalization?", use_nonzero_mask_for_normalization)

spacings = self.dataset_properties['all_spacings']
sizes = self.dataset_properties['all_sizes']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_properties_for_stage(self, current_spacing, original_spacing, original_s

def plan_experiment(self):
use_nonzero_mask_for_normalization = self.determine_whether_to_use_mask_for_norm()
print("Are we using the nonzero mask for normalizaion?", use_nonzero_mask_for_normalization)
print("Are we using the nonzero mask for normalization?", use_nonzero_mask_for_normalization)
spacings = self.dataset_properties['all_spacings']
sizes = self.dataset_properties['all_sizes']

Expand Down
2 changes: 1 addition & 1 deletion nnunet/training/network_training/nnUNetTrainerV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def initialize_optimizer_and_scheduler(self):
def run_online_evaluation(self, output, target):
"""
due to deep supervision the return value and the reference are now lists of tensors. We only need the full
resolution output because this is what we are interested in the end. The others are ignored
resolution output because this is what we are interested in in the end. The others are ignored
:param output:
:param target:
:return:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def initialize(self, training=True, force_load_plans=False):
def run_online_evaluation(self, output, target):
"""
due to deep supervision the return value and the reference are now lists of tensors. We only need the full
resolution output because this is what we are interested in the end. The others are ignored
resolution output because this is what we are interested in in the end. The others are ignored
:param output:
:param target:
:return:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_steps_for_sliding_window_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _verify_steps(self, steps, patch_size, image_size, step_size):
str(patch_size), step_size)
target_step_sizes_in_voxels = [i * step_size for i in patch_size]

# this code is copied from the current implementation. Not ideal, but I don't know hoe else to the the
# this code is copied from the current implementation. Not ideal, but I don't know how else to compute the
# expected num_steps
num_steps = [int(np.ceil((i - k) / j)) + 1 for i, j, k in zip(image_size, target_step_sizes_in_voxels,
patch_size)]
Expand Down

0 comments on commit 6d02b5a

Please sign in to comment.