Skip to content

Commit 154b242

Browse files
committed
Update notebook after testing with App SDK on Holoscan v0.6 RC1
Note that apps with more complex graph, with fork and join, terminates early. This issue had came out after some commits in the Holoscan just before RC1. Will file a bug and investigate in Holoscan Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent cfabded commit 154b242

File tree

4 files changed

+670
-1005
lines changed

4 files changed

+670
-1005
lines changed

notebooks/tutorials/02_mednist_app-prebuilt.ipynb

Lines changed: 73 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,63 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"## Install monai-deploy-app-sdk package"
18+
"## Clone the github project (the latest version of the main branch only)"
1919
]
2020
},
2121
{
2222
"cell_type": "code",
2323
"execution_count": 1,
2424
"metadata": {},
25+
"outputs": [
26+
{
27+
"name": "stdout",
28+
"output_type": "stream",
29+
"text": [
30+
"Cloning into 'source'...\n",
31+
"remote: Enumerating objects: 287, done.\u001b[K\n",
32+
"remote: Counting objects: 100% (287/287), done.\u001b[K\n",
33+
"remote: Compressing objects: 100% (248/248), done.\u001b[K\n",
34+
"remote: Total 287 (delta 62), reused 128 (delta 25), pack-reused 0\u001b[K\n",
35+
"Receiving objects: 100% (287/287), 1.24 MiB | 8.89 MiB/s, done.\n",
36+
"Resolving deltas: 100% (62/62), done.\n"
37+
]
38+
}
39+
],
40+
"source": [
41+
"!rm -rf source \\\n",
42+
" && git clone --branch main --depth 1 https://github.com/Project-MONAI/monai-deploy-app-sdk.git source \\\n",
43+
" && rm -rf source/.git"
44+
]
45+
},
46+
{
47+
"cell_type": "code",
48+
"execution_count": 2,
49+
"metadata": {},
50+
"outputs": [
51+
{
52+
"name": "stdout",
53+
"output_type": "stream",
54+
"text": [
55+
"mednist_classifier_monaideploy.py\n"
56+
]
57+
}
58+
],
59+
"source": [
60+
"!ls source/examples/apps/mednist_classifier_monaideploy/"
61+
]
62+
},
63+
{
64+
"attachments": {},
65+
"cell_type": "markdown",
66+
"metadata": {},
67+
"source": [
68+
"## Install monai-deploy-app-sdk package"
69+
]
70+
},
71+
{
72+
"cell_type": "code",
73+
"execution_count": 3,
74+
"metadata": {},
2575
"outputs": [
2676
{
2777
"name": "stdout",
@@ -30,7 +80,7 @@
3080
"Requirement already satisfied: monai-deploy-app-sdk in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (0.5.0)\n",
3181
"Requirement already satisfied: numpy>=1.21.6 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (1.24.1)\n",
3282
"Requirement already satisfied: networkx>=2.4 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (2.8.3)\n",
33-
"Requirement already satisfied: holoscan>=0.5.0 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (0.6.0.dev0+793.g3d7cb40c)\n",
83+
"Requirement already satisfied: holoscan>=0.5.0 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (0.6.0rc1)\n",
3484
"Requirement already satisfied: colorama>=0.4.1 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (0.4.6)\n",
3585
"Requirement already satisfied: typeguard~=2.12.1 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from monai-deploy-app-sdk) (2.12.1)\n",
3686
"Requirement already satisfied: cloudpickle>=2.0 in /home/mqin/src/monai-deploy-app-sdk/.venv/lib/python3.8/site-packages (from holoscan>=0.5.0->monai-deploy-app-sdk) (2.2.1)\n",
@@ -69,7 +119,7 @@
69119
},
70120
{
71121
"cell_type": "code",
72-
"execution_count": 2,
122+
"execution_count": 4,
73123
"metadata": {},
74124
"outputs": [
75125
{
@@ -104,7 +154,7 @@
104154
},
105155
{
106156
"cell_type": "code",
107-
"execution_count": 3,
157+
"execution_count": 5,
108158
"metadata": {},
109159
"outputs": [
110160
{
@@ -126,7 +176,7 @@
126176
"Downloading...\n",
127177
"From: https://drive.google.com/uc?id=1yJ4P-xMNEfN6lIOq_u6x1eMAq1_MJu-E\n",
128178
"To: /home/mqin/src/monai-deploy-app-sdk/notebooks/tutorials/mednist_classifier_data.zip\n",
129-
"100%|██████████████████████████████████████| 28.6M/28.6M [00:00<00:00, 28.9MB/s]\n"
179+
"100%|██████████████████████████████████████| 28.6M/28.6M [00:00<00:00, 29.5MB/s]\n"
130180
]
131181
}
132182
],
@@ -138,7 +188,7 @@
138188
},
139189
{
140190
"cell_type": "code",
141-
"execution_count": 4,
191+
"execution_count": 6,
142192
"metadata": {},
143193
"outputs": [
144194
{
@@ -169,7 +219,7 @@
169219
},
170220
{
171221
"cell_type": "code",
172-
"execution_count": 5,
222+
"execution_count": 7,
173223
"metadata": {},
174224
"outputs": [
175225
{
@@ -228,7 +278,7 @@
228278
},
229279
{
230280
"cell_type": "code",
231-
"execution_count": 6,
281+
"execution_count": 8,
232282
"metadata": {},
233283
"outputs": [],
234284
"source": [
@@ -259,7 +309,7 @@
259309
},
260310
{
261311
"cell_type": "code",
262-
"execution_count": 7,
312+
"execution_count": 9,
263313
"metadata": {},
264314
"outputs": [],
265315
"source": [
@@ -330,7 +380,7 @@
330380
},
331381
{
332382
"cell_type": "code",
333-
"execution_count": 8,
383+
"execution_count": 10,
334384
"metadata": {},
335385
"outputs": [],
336386
"source": [
@@ -469,7 +519,7 @@
469519
},
470520
{
471521
"cell_type": "code",
472-
"execution_count": 9,
522+
"execution_count": 11,
473523
"metadata": {},
474524
"outputs": [],
475525
"source": [
@@ -520,7 +570,7 @@
520570
},
521571
{
522572
"cell_type": "code",
523-
"execution_count": 10,
573+
"execution_count": 12,
524574
"metadata": {},
525575
"outputs": [
526576
{
@@ -543,8 +593,8 @@
543593
"output_type": "stream",
544594
"text": [
545595
"AbdomenCT\n",
546-
"2023-06-30 15:23:58,615 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.49419907073056155783653345748112147263.dcm\n",
547-
"2023-06-30 15:23:58,618 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.49419907073056155783653345748112147263.dcm\n"
596+
"2023-07-03 15:43:32,310 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.10124578968948227141840411855778377647.dcm\n",
597+
"2023-07-03 15:43:32,313 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.10124578968948227141840411855778377647.dcm\n"
548598
]
549599
},
550600
{
@@ -568,7 +618,7 @@
568618
},
569619
{
570620
"cell_type": "code",
571-
"execution_count": 11,
621+
"execution_count": 13,
572622
"metadata": {},
573623
"outputs": [
574624
{
@@ -602,7 +652,7 @@
602652
},
603653
{
604654
"cell_type": "code",
605-
"execution_count": 12,
655+
"execution_count": 14,
606656
"metadata": {},
607657
"outputs": [
608658
{
@@ -862,7 +912,7 @@
862912
},
863913
{
864914
"cell_type": "code",
865-
"execution_count": 13,
915+
"execution_count": 15,
866916
"metadata": {},
867917
"outputs": [
868918
{
@@ -881,8 +931,8 @@
881931
"AbdomenCT\n",
882932
"/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",
883933
" warnings.warn(msg)\n",
884-
"2023-06-30 15:24:06,484 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.15568136296248732867759967129952621583.dcm\n",
885-
"2023-06-30 15:24:06,485 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.15568136296248732867759967129952621583.dcm\n",
934+
"2023-07-03 15:43:39,657 - Finished writing DICOM instance to file output/1.2.826.0.1.3680043.8.498.83037250127339512361421705762432873573.dcm\n",
935+
"2023-07-03 15:43:39,658 - DICOM SOP instance saved in output/1.2.826.0.1.3680043.8.498.83037250127339512361421705762432873573.dcm\n",
886936
"[\u001b[32minfo\u001b[m] [greedy_scheduler.cpp:369] Scheduler stopped: Some entities are waiting for execution, but there are no periodic or async entities to get out of the deadlock.\n",
887937
"[\u001b[32minfo\u001b[m] [greedy_scheduler.cpp:398] Scheduler finished.\n",
888938
"[\u001b[32minfo\u001b[m] [gxf_executor.cpp:1675] Graph execution deactivating. Fragment: \n",
@@ -898,7 +948,7 @@
898948
},
899949
{
900950
"cell_type": "code",
901-
"execution_count": 14,
951+
"execution_count": 16,
902952
"metadata": {},
903953
"outputs": [
904954
{
@@ -929,7 +979,7 @@
929979
},
930980
{
931981
"cell_type": "code",
932-
"execution_count": 15,
982+
"execution_count": 17,
933983
"metadata": {},
934984
"outputs": [
935985
{
@@ -954,7 +1004,7 @@
9541004
},
9551005
{
9561006
"cell_type": "code",
957-
"execution_count": 16,
1007+
"execution_count": 18,
9581008
"metadata": {},
9591009
"outputs": [
9601010
{
@@ -971,7 +1021,7 @@
9711021
},
9721022
{
9731023
"cell_type": "code",
974-
"execution_count": 17,
1024+
"execution_count": 19,
9751025
"metadata": {},
9761026
"outputs": [
9771027
{

0 commit comments

Comments
 (0)