Skip to content

Commit

Permalink
clear DS_Store
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzjalen committed Jun 23, 2024
1 parent a8ee944 commit aea1ac8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/del_npy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": [
"import os\n",
"\n",
"dir = \"/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_preprocessed/Dataset101_mosaic_skelet_spine/nnUNetPlans_3d_fullres\"\n",
"dir = \"/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_preprocessed/Dataset102_mosaic_skelet_ribs/nnUNetPlans_3d_fullres\"\n",
"files = os.listdir(dir)\n",
"\n",
"for file in files:\n",
Expand Down
6 changes: 3 additions & 3 deletions scripts/evaluate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"from nnunetv2.imageio.nibabel_reader_writer import NibabelIOWithReorient\n",
"import json\n",
"\n",
"folder_ref = '/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_raw/Dataset904_mosaic_kidney_stones/labelsTr'\n",
"model_folder = '/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_results/Dataset904_mosaic_kidney_stones/nnUNetTrainerNoMirroring__nnUNetPlans__3d_fullres_mosaic_spacing_stdres_NoRsmp'\n",
"folder_pred = f'{model_folder}/fold_3/validation'\n",
"folder_ref = '/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_raw/Dataset102_mosaic_skelet_ribs/labelsTr'\n",
"model_folder = '/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_results/Dataset102_mosaic_skelet_ribs/nnUNetTrainerNoMirroring__Mosaic_nnUNetPlannerResEncL_stdres_NoRsmp_24G__3d_fullres'\n",
"folder_pred = f'{model_folder}/fold_0/validation'\n",
"output_file = f'{folder_pred}/summary.json'\n",
"dataset_json = f'{model_folder}/dataset.json'\n",
"image_reader_writer = NibabelIOWithReorient()\n",
Expand Down
8 changes: 5 additions & 3 deletions scripts/generate_json.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@
"from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json\n",
"import os\n",
"\n",
"dataset = \"/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_raw/Dataset904_mosaic_kidney_stones\"\n",
"dataset = \"/home/eolika/Desktop/BlueMind/nnUNet/trains/nnUNet_raw/Dataset903_mosaic_head_pathology\"\n",
"\n",
"generate_dataset_json(output_folder=dataset,\n",
" channel_names={0: \"CT\"},\n",
" labels={\n",
" 'background': 0,\n",
" \"kidney_stone\": 1\n",
" \"brain\": 1,\n",
" \"ischemic_stroke\": 2,\n",
" \"intracerebral_hemorrhage\": 3\n",
" },\n",
" num_training_cases=len(os.listdir(f'{dataset}/imagesTr')), \n",
" file_ending='.nii.gz',\n",
" dataset_name=dataset.split('/')[-1], \n",
" reference='BlueMind AI Inc',\n",
" release='1.0.0',\n",
" overwrite_image_reader_writer='NibabelIOWithReorient',\n",
" description=\"kidney_stones\")"
" description=\"head_pathology\")"
]
},
{
Expand Down

0 comments on commit aea1ac8

Please sign in to comment.