Skip to content

Commit 130f6ac

Browse files
committed
update according to the guide
Signed-off-by: Wenqi Li <[email protected]>
1 parent bdc522d commit 130f6ac

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,14 @@
7979
"source": [
8080
"# 1. Setup\n",
8181
"\n",
82-
"These are the initial steps for running notebooks within various Jupyter environments.\n",
83-
"\n",
84-
"## Setup environment"
82+
"These are the initial steps for running notebooks within various Jupyter environments."
8583
]
8684
},
8785
{
88-
"cell_type": "code",
89-
"execution_count": null,
90-
"metadata": {
91-
"id": "XFhjBkS35hYN"
92-
},
93-
"outputs": [],
86+
"cell_type": "markdown",
87+
"metadata": {},
9488
"source": [
95-
"import os\n",
96-
"\n",
97-
"# Upgrade pip, just in case.\n",
98-
"!python -m pip install --upgrade -q pip"
89+
"## Setup environment"
9990
]
10091
},
10192
{
@@ -112,6 +103,9 @@
112103
"# such as voxel image, image orientation, and image directions,\n",
113104
"# which are critical to image processing and display.\n",
114105
"\n",
106+
"# Upgrade pip, just in case.\n",
107+
"!python -m pip install --upgrade -q pip\n",
108+
"\n",
115109
"# installations required for monai\n",
116110
"!python -c \"import monai\" || pip install -q \"monai[nibabel,itk,tqdm,pandas,skimage]\"\n",
117111
"\n",
@@ -141,6 +135,7 @@
141135
"outputs": [],
142136
"source": [
143137
"import glob\n",
138+
"import os\n",
144139
"\n",
145140
"# Numpy for numpy.arrays\n",
146141
"import numpy as np\n",
@@ -163,7 +158,11 @@
163158
"# imports for monai\n",
164159
"import torch\n",
165160
"from monai.data import decollate_batch\n",
166-
"from monai.bundle import ConfigParser, download"
161+
"from monai.bundle import ConfigParser, download\n",
162+
"\n",
163+
"from monai.config import print_config\n",
164+
"\n",
165+
"print_config()"
167166
]
168167
},
169168
{

0 commit comments

Comments
 (0)