Skip to content

Commit

Permalink
add 3d_fullres_no_resampling
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzjalen committed Mar 6, 2024
1 parent 22306c4 commit 58f401b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,25 @@ def plan_experiment(self):
'previous_stage': '3d_lowres'
}

plans['configurations']['3d_fullres_mosaic_spacing'] = {
plans['configurations']['3d_fullres_no_resampling'] = {
'inherits_from': '3d_fullres',
"resampling_fn_data": "no_resampling_data_or_seg_to_shape",
"resampling_fn_seg": "no_resampling_data_or_seg_to_shape",
"resampling_fn_probabilities": "no_resampling_data_or_seg_to_shape",
"data_identifier": "3d_fullres_no_resampling"
}

plans['configurations']['3d_fullres_mosaic_spacing_NoRsmp'] = {
'inherits_from': '3d_fullres_no_resampling',
"spacing": [1.0, 1.0, 1.0],
"data_identifier": "3d_fullres_mosaic_spacing"
"data_identifier": "3d_fullres_mosaic_spacing_NoRsmp"
}
print('3D fullres Mosaic spacing U-Net configuration:')
print(plans['configurations']['3d_fullres_mosaic_spacing'])
print(plans['configurations']['3d_fullres_mosaic_spacing_NoRsmp'])
print()

plans['configurations']['3d_fullres_mosaic_arch2_NoRsmp'] = {
'inherits_from': '3d_fullres',
'inherits_from': '3d_fullres_no_resampling',
'batch_size': 2,
"spacing": [1.0, 1.0, 1.0],
"patch_size": [192, 192, 192],
Expand All @@ -575,10 +583,7 @@ def plan_experiment(self):
"unet_max_num_features": 320,
"normalization_schemes": ["CTNormalization"],
"batch_dice": False,
"resampling_fn_data": "no_resampling_data_or_seg_to_shape",
"resampling_fn_seg": "no_resampling_data_or_seg_to_shape",
"resampling_fn_probabilities": "no_resampling_data_or_seg_to_shape",
"data_identifier": "3d_fullres_mosaic_arch2"
"data_identifier": "3d_fullres_mosaic_arch2_NoRsmp"
}
print('3D fullres Mosaic ARCH2 U-Net configuration:')
print(plans['configurations']['3d_fullres_mosaic_arch2_NoRsmp'])
Expand All @@ -604,9 +609,6 @@ def plan_experiment(self):
1,
1
],
"resampling_fn_data": "no_resampling_data_or_seg_to_shape",
"resampling_fn_seg": "no_resampling_data_or_seg_to_shape",
"resampling_fn_probabilities": "no_resampling_data_or_seg_to_shape",
"data_identifier": "3d_fullres_mosaic_resenc_NoRsmp"
}

Expand Down
5 changes: 2 additions & 3 deletions scripts/del_npy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"dir = \"/media/eolika/49755d50-5426-4672-87cc-2d1a5a3747ad/nnUNet/nnUNet_preprocessed/Dataset101_mosaic_skeleton/3d_fullres_mosaic_spacing\"\n",
"\n",
"dir = \"/media/eolika/49755d50-5426-4672-87cc-2d1a5a3747ad/nnUNet/nnUNet_preprocessed/Dataset101_mosaic_skeleton/3d_fullres_mosaic_resenc_NoRsmp\"\n",
"files = os.listdir(dir)\n",
"\n",
"for file in files:\n",
Expand Down

0 comments on commit 58f401b

Please sign in to comment.