|
19 | 19 | },
|
20 | 20 | {
|
21 | 21 | "cell_type": "code",
|
22 |
| - "execution_count": 22, |
| 22 | + "execution_count": 1, |
23 | 23 | "metadata": {},
|
24 | 24 | "outputs": [
|
25 | 25 | {
|
|
51 | 51 | },
|
52 | 52 | {
|
53 | 53 | "cell_type": "code",
|
54 |
| - "execution_count": 23, |
| 54 | + "execution_count": 2, |
55 | 55 | "metadata": {},
|
56 | 56 | "outputs": [
|
57 | 57 | {
|
|
85 | 85 | },
|
86 | 86 | {
|
87 | 87 | "cell_type": "code",
|
88 |
| - "execution_count": 24, |
| 88 | + "execution_count": 3, |
89 | 89 | "metadata": {},
|
90 | 90 | "outputs": [
|
91 | 91 | {
|
|
107 | 107 | "Downloading...\n",
|
108 | 108 | "From: https://drive.google.com/uc?id=1yJ4P-xMNEfN6lIOq_u6x1eMAq1_MJu-E\n",
|
109 | 109 | "To: /home/mqin/src/monai-deploy-app-sdk/notebooks/tutorials/mednist_classifier_data.zip\n",
|
110 |
| - "100%|██████████████████████████████████████| 28.6M/28.6M [00:00<00:00, 81.1MB/s]\n" |
| 110 | + "100%|██████████████████████████████████████| 28.6M/28.6M [00:00<00:00, 29.0MB/s]\n" |
111 | 111 | ]
|
112 | 112 | }
|
113 | 113 | ],
|
|
119 | 119 | },
|
120 | 120 | {
|
121 | 121 | "cell_type": "code",
|
122 |
| - "execution_count": 25, |
| 122 | + "execution_count": 4, |
123 | 123 | "metadata": {},
|
124 | 124 | "outputs": [
|
125 | 125 | {
|
|
150 | 150 | },
|
151 | 151 | {
|
152 | 152 | "cell_type": "code",
|
153 |
| - "execution_count": 26, |
| 153 | + "execution_count": 5, |
154 | 154 | "metadata": {},
|
155 | 155 | "outputs": [
|
156 | 156 | {
|
|
208 | 208 | },
|
209 | 209 | {
|
210 | 210 | "cell_type": "code",
|
211 |
| - "execution_count": 27, |
| 211 | + "execution_count": 6, |
212 | 212 | "metadata": {},
|
213 | 213 | "outputs": [],
|
214 | 214 | "source": [
|
|
238 | 238 | },
|
239 | 239 | {
|
240 | 240 | "cell_type": "code",
|
241 |
| - "execution_count": 28, |
| 241 | + "execution_count": 7, |
242 | 242 | "metadata": {},
|
243 | 243 | "outputs": [],
|
244 | 244 | "source": [
|
|
308 | 308 | },
|
309 | 309 | {
|
310 | 310 | "cell_type": "code",
|
311 |
| - "execution_count": 29, |
| 311 | + "execution_count": 8, |
312 | 312 | "metadata": {},
|
313 | 313 | "outputs": [],
|
314 | 314 | "source": [
|
|
446 | 446 | },
|
447 | 447 | {
|
448 | 448 | "cell_type": "code",
|
449 |
| - "execution_count": 30, |
| 449 | + "execution_count": 9, |
450 | 450 | "metadata": {},
|
451 | 451 | "outputs": [],
|
452 | 452 | "source": [
|
|
495 | 495 | },
|
496 | 496 | {
|
497 | 497 | "cell_type": "code",
|
498 |
| - "execution_count": 31, |
| 498 | + "execution_count": 10, |
499 | 499 | "metadata": {},
|
500 | 500 | "outputs": [
|
501 |
| - { |
502 |
| - "name": "stdout", |
503 |
| - "output_type": "stream", |
504 |
| - "text": [ |
505 |
| - "\u001b[0m2023-05-15 17:19:05.781 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@71: Creating context\u001b[0m\n", |
506 |
| - "\u001b[0m2023-05-15 17:19:05.785 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@88: Destroying context\u001b[0m\n", |
507 |
| - "\u001b[0m2023-05-15 17:19:05.802 INFO gxf/std/greedy_scheduler.cpp@184: Scheduling 3 entities\u001b[0m\n" |
508 |
| - ] |
509 |
| - }, |
510 | 501 | {
|
511 | 502 | "name": "stderr",
|
512 | 503 | "output_type": "stream",
|
513 | 504 | "text": [
|
514 |
| - "[2023-05-15 17:19:05.787] [holoscan] [info] [gxf_executor.cpp:100] Loading extensions from configs...\n", |
515 |
| - "[2023-05-15 17:19:05.800] [holoscan] [info] [gxf_executor.cpp:291] Activating Graph...\n", |
516 |
| - "[2023-05-15 17:19:05.801] [holoscan] [info] [gxf_executor.cpp:293] Running Graph...\n", |
517 |
| - "[2023-05-15 17:19:05.801] [holoscan] [info] [gxf_executor.cpp:295] Waiting for completion...\n" |
| 505 | + "[2023-05-16 00:06:38.923] [holoscan] [info] [gxf_executor.cpp:100] Loading extensions from configs...\n", |
| 506 | + "[2023-05-16 00:06:38.930] [holoscan] [info] [gxf_executor.cpp:291] Activating Graph...\n", |
| 507 | + "[2023-05-16 00:06:38.931] [holoscan] [info] [gxf_executor.cpp:293] Running Graph...\n", |
| 508 | + "[2023-05-16 00:06:38.931] [holoscan] [info] [gxf_executor.cpp:295] Waiting for completion...\n", |
| 509 | + "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/monai/utils/deprecate_utils.py:107: FutureWarning: <class 'monai.transforms.utility.array.AddChannel'>: Class `AddChannel` has been deprecated since version 0.8. please use MetaTensor data type and monai.transforms.EnsureChannelFirst instead.\n", |
| 510 | + " warn_deprecated(obj, msg, warning_category)\n", |
| 511 | + "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/monai/utils/type_conversion.py:138: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:199.)\n", |
| 512 | + " tensor = torch.as_tensor(tensor, **kwargs)\n" |
518 | 513 | ]
|
519 | 514 | },
|
520 | 515 | {
|
521 | 516 | "name": "stdout",
|
522 | 517 | "output_type": "stream",
|
523 | 518 | "text": [
|
| 519 | + "\u001b[0m2023-05-16 00:06:38.880 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@71: Creating context\u001b[0m\n", |
| 520 | + "\u001b[0m2023-05-16 00:06:38.931 INFO gxf/std/greedy_scheduler.cpp@184: Scheduling 3 entities\u001b[0m\n", |
524 | 521 | "AbdomenCT\n",
|
525 |
| - "2023-05-15 17:19:06,415 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.17437174230253301731396683977887770123.dcm\n", |
526 |
| - "2023-05-15 17:19:06,417 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.17437174230253301731396683977887770123.dcm\n", |
527 |
| - "\u001b[0m2023-05-15 17:19:06.418 INFO gxf/std/greedy_scheduler.cpp@343: Scheduler stopped: Some entities are waiting for execution, but there are no periodic or async entities to get out of the deadlock.\u001b[0m\n", |
528 |
| - "\u001b[0m2023-05-15 17:19:06.418 INFO gxf/std/greedy_scheduler.cpp@367: Scheduler finished.\u001b[0m\n" |
| 522 | + "2023-05-16 00:06:41,947 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.10337316154341231457694740853140828112.dcm\n", |
| 523 | + "2023-05-16 00:06:41,949 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.10337316154341231457694740853140828112.dcm\n", |
| 524 | + "\u001b[0m2023-05-16 00:06:41.950 INFO gxf/std/greedy_scheduler.cpp@343: Scheduler stopped: Some entities are waiting for execution, but there are no periodic or async entities to get out of the deadlock.\u001b[0m\n", |
| 525 | + "\u001b[0m2023-05-16 00:06:41.950 INFO gxf/std/greedy_scheduler.cpp@367: Scheduler finished.\u001b[0m\n" |
529 | 526 | ]
|
530 | 527 | },
|
531 | 528 | {
|
532 | 529 | "name": "stderr",
|
533 | 530 | "output_type": "stream",
|
534 | 531 | "text": [
|
535 |
| - "[2023-05-15 17:19:06.418] [holoscan] [info] [gxf_executor.cpp:297] Deactivating Graph...\n" |
| 532 | + "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/pydicom/valuerep.py:290: UserWarning: Invalid value for VR UI: 'xyz'. Please see <https://dicom.nema.org/medical/dicom/current/output/html/part05.html#table_6.2-1> for allowed values for each VR.\n", |
| 533 | + " warnings.warn(msg)\n", |
| 534 | + "[2023-05-16 00:06:41.950] [holoscan] [info] [gxf_executor.cpp:297] Deactivating Graph...\n" |
536 | 535 | ]
|
537 | 536 | }
|
538 | 537 | ],
|
|
543 | 542 | },
|
544 | 543 | {
|
545 | 544 | "cell_type": "code",
|
546 |
| - "execution_count": 32, |
| 545 | + "execution_count": 11, |
547 | 546 | "metadata": {},
|
548 | 547 | "outputs": [
|
549 | 548 | {
|
|
559 | 558 | ]
|
560 | 559 | },
|
561 | 560 | {
|
| 561 | + "attachments": {}, |
562 | 562 | "cell_type": "markdown",
|
563 | 563 | "metadata": {
|
564 | 564 | "tags": []
|
|
568 | 568 | "\n",
|
569 | 569 | "```python\n",
|
570 | 570 | "if __name__ == \"__main__\":\n",
|
571 |
| - " App(do_run=True)\n", |
| 571 | + " App().run()\n", |
572 | 572 | "```\n",
|
573 | 573 | "\n",
|
574 | 574 | "The above lines are needed to execute the application code by using `python` interpreter."
|
575 | 575 | ]
|
576 | 576 | },
|
577 | 577 | {
|
578 | 578 | "cell_type": "code",
|
579 |
| - "execution_count": 33, |
| 579 | + "execution_count": 12, |
580 | 580 | "metadata": {},
|
581 | 581 | "outputs": [
|
582 | 582 | {
|
|
836 | 836 | },
|
837 | 837 | {
|
838 | 838 | "cell_type": "code",
|
839 |
| - "execution_count": 34, |
| 839 | + "execution_count": 13, |
840 | 840 | "metadata": {},
|
841 | 841 | "outputs": [
|
842 | 842 | {
|
843 | 843 | "name": "stdout",
|
844 | 844 | "output_type": "stream",
|
845 | 845 | "text": [
|
846 |
| - "\u001b[0m2023-05-15 17:19:10.945 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@71: Creating context\u001b[0m\n", |
847 |
| - "[2023-05-15 17:19:10.967] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:100] Loading extensions from configs...\n", |
848 |
| - "[2023-05-15 17:19:10.973] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:291] Activating Graph...\n", |
849 |
| - "[2023-05-15 17:19:10.974] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:293] Running Graph...\n", |
850 |
| - "[2023-05-15 17:19:10.974] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:295] Waiting for completion...\n", |
851 |
| - "\u001b[0m2023-05-15 17:19:10.974 INFO gxf/std/greedy_scheduler.cpp@184: Scheduling 3 entities\u001b[0m\n", |
| 846 | + "\u001b[0m2023-05-16 00:06:46.757 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@71: Creating context\u001b[0m\n", |
| 847 | + "[2023-05-16 00:06:46.779] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:100] Loading extensions from configs...\n", |
| 848 | + "[2023-05-16 00:06:46.785] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:291] Activating Graph...\n", |
| 849 | + "[2023-05-16 00:06:46.786] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:293] Running Graph...\n", |
| 850 | + "[2023-05-16 00:06:46.786] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:295] Waiting for completion...\n", |
| 851 | + "\u001b[0m2023-05-16 00:06:46.786 INFO gxf/std/greedy_scheduler.cpp@184: Scheduling 3 entities\u001b[0m\n", |
852 | 852 | "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/monai/utils/deprecate_utils.py:107: FutureWarning: <class 'monai.transforms.utility.array.AddChannel'>: Class `AddChannel` has been deprecated since version 0.8. please use MetaTensor data type and monai.transforms.EnsureChannelFirst instead.\n",
|
853 | 853 | " warn_deprecated(obj, msg, warning_category)\n",
|
854 | 854 | "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/monai/utils/type_conversion.py:138: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:199.)\n",
|
855 | 855 | " tensor = torch.as_tensor(tensor, **kwargs)\n",
|
856 | 856 | "AbdomenCT\n",
|
857 | 857 | "/home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages/pydicom/valuerep.py:290: UserWarning: Invalid value for VR UI: 'xyz'. Please see <https://dicom.nema.org/medical/dicom/current/output/html/part05.html#table_6.2-1> for allowed values for each VR.\n",
|
858 | 858 | " warnings.warn(msg)\n",
|
859 |
| - "2023-05-15 17:19:12,821 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.46748951944511505260343032925761438990.dcm\n", |
860 |
| - "2023-05-15 17:19:12,822 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.46748951944511505260343032925761438990.dcm\n", |
861 |
| - "\u001b[0m2023-05-15 17:19:12.822 INFO gxf/std/greedy_scheduler.cpp@343: Scheduler stopped: Some entities are waiting for execution, but there are no periodic or async entities to get out of the deadlock.\u001b[0m\n", |
862 |
| - "\u001b[0m2023-05-15 17:19:12.823 INFO gxf/std/greedy_scheduler.cpp@367: Scheduler finished.\u001b[0m\n", |
863 |
| - "[2023-05-15 17:19:12.823] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:297] Deactivating Graph...\n", |
864 |
| - "\u001b[0m2023-05-15 17:19:12.823 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@88: Destroying context\u001b[0m\n" |
| 859 | + "2023-05-16 00:06:48,646 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.92740346106070946128804068751213493495.dcm\n", |
| 860 | + "2023-05-16 00:06:48,647 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.92740346106070946128804068751213493495.dcm\n", |
| 861 | + "\u001b[0m2023-05-16 00:06:48.647 INFO gxf/std/greedy_scheduler.cpp@343: Scheduler stopped: Some entities are waiting for execution, but there are no periodic or async entities to get out of the deadlock.\u001b[0m\n", |
| 862 | + "\u001b[0m2023-05-16 00:06:48.648 INFO gxf/std/greedy_scheduler.cpp@367: Scheduler finished.\u001b[0m\n", |
| 863 | + "[2023-05-16 00:06:48.648] [holoscan] [\u001b[32minfo\u001b[m] [gxf_executor.cpp:297] Deactivating Graph...\n", |
| 864 | + "\u001b[0m2023-05-16 00:06:48.648 INFO /workspace/holoscan-sdk/src/core/executors/gxf/gxf_executor.cpp@88: Destroying context\u001b[0m\n" |
865 | 865 | ]
|
866 | 866 | }
|
867 | 867 | ],
|
|
878 | 878 | },
|
879 | 879 | {
|
880 | 880 | "cell_type": "code",
|
881 |
| - "execution_count": 35, |
| 881 | + "execution_count": 14, |
882 | 882 | "metadata": {},
|
883 | 883 | "outputs": [
|
884 | 884 | {
|
|
895 | 895 | },
|
896 | 896 | {
|
897 | 897 | "cell_type": "code",
|
898 |
| - "execution_count": 36, |
| 898 | + "execution_count": 15, |
899 | 899 | "metadata": {},
|
900 | 900 | "outputs": [
|
901 | 901 | {
|
|
925 | 925 | },
|
926 | 926 | {
|
927 | 927 | "cell_type": "code",
|
928 |
| - "execution_count": 37, |
| 928 | + "execution_count": 16, |
929 | 929 | "metadata": {},
|
930 | 930 | "outputs": [
|
931 | 931 | {
|
|
949 | 949 | },
|
950 | 950 | {
|
951 | 951 | "cell_type": "code",
|
952 |
| - "execution_count": 38, |
| 952 | + "execution_count": 17, |
953 | 953 | "metadata": {},
|
954 | 954 | "outputs": [
|
955 | 955 | {
|
|
966 | 966 | },
|
967 | 967 | {
|
968 | 968 | "cell_type": "code",
|
969 |
| - "execution_count": 39, |
| 969 | + "execution_count": 18, |
970 | 970 | "metadata": {},
|
971 | 971 | "outputs": [
|
972 | 972 | {
|
|
0 commit comments