|
53 | 53 | }, |
54 | 54 | { |
55 | 55 | "cell_type": "code", |
56 | | - "execution_count": 4, |
| 56 | + "execution_count": 1, |
57 | 57 | "metadata": {}, |
58 | 58 | "outputs": [ |
59 | 59 | { |
60 | 60 | "name": "stdout", |
61 | 61 | "output_type": "stream", |
62 | 62 | "text": [ |
63 | 63 | "Requirement already satisfied: brainles_preprocessing in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (0.0.25)\n", |
| 64 | + "Collecting brainles_preprocessing\n", |
| 65 | + " Downloading brainles_preprocessing-0.0.26-py3-none-any.whl.metadata (3.0 kB)\n", |
64 | 66 | "Requirement already satisfied: brats_toolkit in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (1.0.14)\n", |
65 | 67 | "Requirement already satisfied: auxiliary in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (0.0.40)\n", |
66 | 68 | "Requirement already satisfied: BrainLes-HD-BET>=0.0.5 in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (from brainles_preprocessing) (0.0.5)\n", |
|
113 | 115 | "Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/florian/.local/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch>=0.4.1->BrainLes-HD-BET>=0.0.5->brainles_preprocessing) (12.3.52)\n", |
114 | 116 | "Requirement already satisfied: MarkupSafe>=2.0 in /home/florian/.local/lib/python3.10/site-packages (from jinja2->torch>=0.4.1->BrainLes-HD-BET>=0.0.5->brainles_preprocessing) (2.1.3)\n", |
115 | 117 | "Requirement already satisfied: mpmath>=0.19 in /home/florian/.local/lib/python3.10/site-packages (from sympy->torch>=0.4.1->BrainLes-HD-BET>=0.0.5->brainles_preprocessing) (1.3.0)\n", |
| 118 | + "Downloading brainles_preprocessing-0.0.26-py3-none-any.whl (19.7 MB)\n", |
| 119 | + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m19.7/19.7 MB\u001b[0m \u001b[31m89.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n", |
| 120 | + "\u001b[?25hInstalling collected packages: brainles_preprocessing\n", |
| 121 | + " Attempting uninstall: brainles_preprocessing\n", |
| 122 | + " Found existing installation: brainles_preprocessing 0.0.25\n", |
| 123 | + " Uninstalling brainles_preprocessing-0.0.25:\n", |
| 124 | + " Successfully uninstalled brainles_preprocessing-0.0.25\n", |
| 125 | + "Successfully installed brainles_preprocessing-0.0.26\n", |
116 | 126 | "Note: you may need to restart the kernel to use updated packages.\n", |
117 | 127 | "Requirement already satisfied: matplotlib in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (3.8.3)\n", |
118 | 128 | "Requirement already satisfied: contourpy>=1.0.1 in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (from matplotlib) (1.2.0)\n", |
|
125 | 135 | "Requirement already satisfied: pyparsing>=2.3.1 in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (from matplotlib) (3.1.1)\n", |
126 | 136 | "Requirement already satisfied: python-dateutil>=2.7 in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (from matplotlib) (2.8.2)\n", |
127 | 137 | "Requirement already satisfied: six>=1.5 in /home/florian/miniconda3/envs/aurora_tutorial/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)\n", |
128 | | - "Note: you may need to restart the kernel to use updated packages.\n", |
129 | | - "The autoreload extension is already loaded. To reload it, use:\n", |
130 | | - " %reload_ext autoreload\n" |
| 138 | + "Note: you may need to restart the kernel to use updated packages.\n" |
131 | 139 | ] |
132 | 140 | } |
133 | 141 | ], |
|
172 | 180 | }, |
173 | 181 | { |
174 | 182 | "cell_type": "code", |
175 | | - "execution_count": 5, |
| 183 | + "execution_count": 2, |
176 | 184 | "metadata": {}, |
177 | 185 | "outputs": [], |
178 | 186 | "source": [ |
|
226 | 234 | }, |
227 | 235 | { |
228 | 236 | "cell_type": "code", |
229 | | - "execution_count": 8, |
| 237 | + "execution_count": 4, |
230 | 238 | "metadata": {}, |
231 | 239 | "outputs": [], |
232 | 240 | "source": [ |
|
346 | 354 | }, |
347 | 355 | { |
348 | 356 | "cell_type": "code", |
349 | | - "execution_count": 9, |
| 357 | + "execution_count": 5, |
350 | 358 | "metadata": {}, |
351 | 359 | "outputs": [ |
352 | 360 | { |
|
361 | 369 | "output_type": "stream", |
362 | 370 | "text": [ |
363 | 371 | "processing: /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/data/OtherEXampleFromTCIA\n", |
364 | | - "*** start ***\n" |
| 372 | + "*** start ***\n", |
| 373 | + "File: /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/atlas-space/atlas__t1c.nii.gz\n", |
| 374 | + "preprocessing...\n", |
| 375 | + "image shape after preprocessing: (103, 160, 160)\n", |
| 376 | + "prediction (CNN id)...\n", |
| 377 | + "0\n", |
| 378 | + "1\n", |
| 379 | + "2\n", |
| 380 | + "3\n", |
| 381 | + "4\n", |
| 382 | + "exporting segmentation...\n", |
| 383 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/atlas_bet_t1c.nii.gz\n", |
| 384 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__t1.nii.gz\n", |
| 385 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__t2.nii.gz\n", |
| 386 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__flair.nii.gz\n" |
365 | 387 | ] |
366 | 388 | }, |
367 | 389 | { |
368 | 390 | "name": "stderr", |
369 | 391 | "output_type": "stream", |
370 | 392 | "text": [ |
371 | | - " 50%|█████ | 1/2 [03:00<03:00, 180.99s/it]" |
| 393 | + " 50%|█████ | 1/2 [04:17<04:17, 257.19s/it]" |
372 | 394 | ] |
373 | 395 | }, |
374 | 396 | { |
375 | 397 | "name": "stdout", |
376 | 398 | "output_type": "stream", |
377 | 399 | "text": [ |
378 | 400 | "processing: /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/data/TCGA-DU-7294\n", |
379 | | - "*** start ***\n" |
| 401 | + "*** start ***\n", |
| 402 | + "File: /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/atlas-space/atlas__t1c.nii.gz\n", |
| 403 | + "preprocessing...\n", |
| 404 | + "image shape after preprocessing: (103, 160, 160)\n", |
| 405 | + "prediction (CNN id)...\n", |
| 406 | + "0\n", |
| 407 | + "1\n", |
| 408 | + "2\n", |
| 409 | + "3\n", |
| 410 | + "4\n", |
| 411 | + "exporting segmentation...\n", |
| 412 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/atlas_bet_t1c.nii.gz\n", |
| 413 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__t1.nii.gz\n", |
| 414 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__t2.nii.gz\n", |
| 415 | + "current image /home/florian/flow/BrainLesion/tutorials/BraTS-Toolkit/temporary_directory/brain-extraction/brain_masked/brain_masked__flair.nii.gz\n" |
380 | 416 | ] |
381 | 417 | }, |
382 | 418 | { |
383 | 419 | "name": "stderr", |
384 | 420 | "output_type": "stream", |
385 | 421 | "text": [ |
386 | | - "100%|██████████| 2/2 [09:48<00:00, 294.05s/it]\n" |
| 422 | + "100%|██████████| 2/2 [10:53<00:00, 326.56s/it]\n" |
387 | 423 | ] |
388 | 424 | } |
389 | 425 | ], |
|
0 commit comments