Skip to content

Commit 3100e61

Browse files
author
Edwards
committed
inferring participant home directory and clarifying validation data path
location
1 parent 0180f7e commit 3100e61

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Task_1/FeTS_Challenge.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,15 +725,19 @@
725725
"outputs": [],
726726
"source": [
727727
"from fets_challenge import model_outputs_to_disc\n",
728+
"from pathlib import Path\n",
729+
"\n",
730+
"# infer participant home folder\n",
731+
"home = str(Path.home())\n",
728732
"\n",
729733
"# you will need to specify the correct experiment folder and the parent directory for\n",
730734
"# the data you want to run inference over\n",
731735
"checkpoint_folder='experiment_1'\n",
732-
"data_path = '/raid/edwardsb/validation_set'\n",
736+
"data_path = </PATH/TO/CHALLENGE_VALIDATION_DATA>\n",
733737
"\n",
734738
"# you can keep these the same if you wish\n",
735-
"best_model_path = '/home/edwardsb/.local/workspace/checkpoint/' + checkpoint_folder + '/best_model.pkl'\n",
736-
"outputs_path = '/home/edwardsb/.local/workspace/checkpoint/' + checkpoint_folder + '/model_outputs'\n",
739+
"best_model_path = os.path.join(home, '.local/workspace/checkpoint', checkpoint_folder, 'best_model.pkl')\n",
740+
"outputs_path = os.path.join(home, '.local/workspace/checkpoint', checkpoint_folder, 'model_outputs')\n",
737741
"\n",
738742
"\n",
739743
"# Using this best model, we can now produce NIfTI files for model outputs \n",

0 commit comments

Comments
 (0)