Skip to content

Commit 2881879

Browse files
authored
Updates: Upgrade MONAI rc3 | Pydantic 1.8.2 | bundle path add | Orthanc Doc (#1086)
1 parent 3dfba51 commit 2881879

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# please run `./runtests.sh --clean && DOCKER_BUILDKIT=1 docker build -t projectmonai/monailabel:latest .`
1414
# to use different version of MONAI pass `--build-arg MONAI_IMAGE=...`
1515

16-
ARG MONAI_IMAGE=projectmonai/monai:1.0.1rc2
16+
ARG MONAI_IMAGE=projectmonai/monai:1.0.1rc3
1717
ARG BUILD_OHIF=true
1818

1919
FROM ${MONAI_IMAGE} as build

docs/source/quickstart.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,15 @@ endpoint of our DICOM server, which based on the last section is ``http://locaho
273273
# download DeepEdit sample app to local directory
274274
monailabel apps --name radiology --download --output .
275275
276-
# start the DeepEdit app in MONAI label server
276+
# For MONAI Label version <=0.2.0, pass credentials and start the DeepEdit app in MONAI label server
277277
# and start annotating images in our DICOM server
278278
monailabel start_server --app radiology --studies http://locahost:8042/dicom-web --conf models deepedit --username orthanc --password orthanc
279279
280+
# For MONAI label version >=0.3.0, if you have authentication set for dicom-web then you can pass the credentials using environment
281+
#`variables <https://github.com/Project-MONAI/MONAILabel/blob/main/monailabel/config.py>`_ while running the server.
282+
export MONAI_LABEL_DICOMWEB_USERNAME=xyz
283+
export MONAI_LABEL_DICOMWEB_PASSWORD=abc
284+
monailabel start_server --app apps/radiology --studies http://127.0.0.1:8042/dicom-web --conf models deepedit
280285
281286
At this point OHIF can be used to annotate the data in the DICOM server via the MONAI Label server ``/ohif`` endpoint
282287
(e.g. via `http://127.0.0.1:8000/ohif <http://127.0.0.1:8000/ohif>`_).
@@ -424,11 +429,8 @@ Prerequisite: Check Model Zoo `Release <https://github.com/Project-MONAI/model-z
424429
# Step 3: download a local study images, sample dataset such as spleen CT (contrast enhanced CTs are better):
425430
monailabel datasets --download --name Task09_Spleen --output .
426431
427-
# Step4: set customised bundle scripts to python path (the bundle models and code are downloaded when start monai label server)
428-
export PYTHONPATH=$PYTHONPATH:"monaibundle/model/renalStructures_UNEST_segmentation_v0.2.0"
429-
430-
# Step 5: start the bundle app in MONAI label server
431-
monailabel start_server --app monaibundle --studies Task09_Spleen/imagesTr --conf models renalStructures_UNEST_segmentation_v0.2.0
432+
# Step 4: start the bundle app in MONAI label server
433+
monailabel start_server --app monaibundle --studies Task09_Spleen/imagesTr --conf models renalStructures_UNEST_segmentation_v0.2.0
432434
433435
434436

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
# limitations under the License.
1111

1212
torch>=1.7
13-
monai[nibabel, skimage, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, openslide, fire]>=1.0.1rc2
13+
monai[nibabel, skimage, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, openslide, fire]>=1.0.1rc3
1414
uvicorn==0.17.6
15-
pydantic==1.9.1
15+
pydantic>=1.8.2
1616
python-dotenv==0.20.0
1717
fastapi==0.78.0
1818
python-multipart==0.0.5

sample-apps/monaibundle/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import re
1515
import shutil
16+
import sys
1617
from typing import Dict
1718

1819
import requests
@@ -80,6 +81,7 @@ def __init__(self, app_dir, studies, conf):
8081
e = os.path.join(self.model_dir, re.sub(r"_v.*.zip", "", f"{k}.zip"))
8182
if os.path.isdir(e):
8283
shutil.move(e, p)
84+
sys.path.append(p)
8385

8486
self.models[k] = p
8587

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ setup_requires =
3636
ninja
3737
install_requires =
3838
torch>=1.7
39-
monai[nibabel, skimage, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, openslide, fire]>=1.0.1rc2
39+
monai[nibabel, skimage, pillow, tensorboard, gdown, ignite, torchvision, itk, tqdm, lmdb, psutil, openslide, fire]>=1.0.1rc3
4040
uvicorn==0.17.6
41-
pydantic==1.9.1
41+
pydantic>=1.8.2
4242
python-dotenv==0.20.0
4343
fastapi==0.78.0
4444
python-multipart==0.0.5

0 commit comments

Comments
 (0)