|
19 | 19 | "\n", |
20 | 20 | "Now that you are visualizing the notebook in Colab, run the next cell to install the packages we will use. There are few things you should follow in order to properly set the notebook up:\n", |
21 | 21 | "1. Warning: This notebook was not authored by Google. Click on 'Run anyway'.\n", |
22 | | - "1. When the installation commands are done, there might be \"Restart runtime\" button at the end of the output. Please, click it." |
| 22 | + "1. When the installation commands are done, there might be a \"Restart runtime\" button at the end of the output. Please, click it." |
23 | 23 | ] |
24 | 24 | }, |
25 | 25 | { |
|
75 | 75 | "import sys\n", |
76 | 76 | "\n", |
77 | 77 | "COLAB_BASE_PATH = \"/content/tutorials/AURORA/\"\n", |
78 | | - "sys.path.insert(0, COLAB_BASE_PATH)" |
| 78 | + "sys.path.insert(0, COLAB_BASE_PATH)\n", |
| 79 | + "\n", |
| 80 | + "# cd into AURORA folder\n", |
| 81 | + "%cd tutorials/AURORA" |
79 | 82 | ] |
80 | 83 | }, |
81 | 84 | { |
|
335 | 338 | "\n", |
336 | 339 | "# Use all four input modalities,we also create other outputs and a custom log file\n", |
337 | 340 | "_ = inferer.infer(\n", |
338 | | - " t1=\"data/t1n.nii.gz\",\n", |
| 341 | + " t1=\"data/t1.nii.gz\",\n", |
339 | 342 | " t1c=\"data/t1c.nii.gz\",\n", |
340 | | - " t2=\"data/t2w.nii.gz\",\n", |
341 | | - " fla=\"data/t2f.nii.gz\",\n", |
| 343 | + " t2=\"data/t2.nii.gz\",\n", |
| 344 | + " fla=\"data/flair.nii.gz\",\n", |
342 | 345 | " segmentation_file=\"output/multi-modal_segmentation.nii.gz\",\n", |
343 | 346 | " # The unbinarized network outputs for the whole tumor channel (edema + enhancing tumor core + necrosis) channel\n", |
344 | 347 | " whole_tumor_unbinarized_floats_file=\"output/whole_tumor_unbinarized_floats.nii.gz\",\n", |
|
409 | 412 | "inferer = AuroraGPUInferer(config=config)\n", |
410 | 413 | "\n", |
411 | 414 | "# we load the nifty data to a numpy array\n", |
412 | | - "t1_np = nib.load(\"data/t1n.nii.gz\").get_fdata()\n", |
| 415 | + "t1_np = nib.load(\"data/t1.nii.gz\").get_fdata()\n", |
413 | 416 | "\n", |
414 | 417 | "# we can now use the inferer to perform the inference and obtain again a numpy array containing the segmentation\n", |
415 | 418 | "results = inferer.infer(t1=t1_np)\n", |
|
0 commit comments