Skip to content

Commit d182253

Browse files
tangy5pre-commit-ci[bot]SachidanandAlle
authored
Update doc to link tutorials | Add auth token guide for bundle app (#1241)
* update doc for E2E tutorial and monaibundle auth token Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * update doc for E2E tutorial and monaibundle auth token Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * some fix Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * fix indentations Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * add mlflow figs, OHIF docs, link Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * trigger CI Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Signed-off-by: tangy5 <yucheng.tang@vanderbilt.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: SACHIDANAND ALLE <sachidanand.alle@gmail.com>
1 parent 5c9446b commit d182253

File tree

8 files changed

+35
-6
lines changed

8 files changed

+35
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ with [MONAI](https://github.com/Project-MONAI). Refer to full [MONAI Label docum
3333
- [MONAI Label Server](#current-stable-version)
3434
- [Visualization Tools Guide](#visualization-tools)
3535
- [Plugin Guide](#plugins)
36+
- [MONAI Label Tutorials](https://github.com/Project-MONAI/tutorials/tree/main/monailabel)
3637
- [Contributing Guide and Communities](#contributing)
3738

3839
## Sample Apps in MONAILabel

docs/images/mlflow0.png

112 KB
Loading

docs/images/mlflow1.png

449 KB
Loading

docs/images/mlflow2.png

36.8 KB
Loading

docs/images/mlflow3.png

81.5 KB
Loading

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and supported visualization tools with latest release of MONAI Label. Weekly pre
2121

2222
Current Milestone Release of MONAI Label:
2323

24-
* `0.6.0 <https://pypi.org/project/monailabel/>`_
24+
* `Latest MONAI Label <https://pypi.org/project/monailabel/>`_
2525

2626
MONAI Label Supported Stable Visualization Tools:
2727

docs/source/quickstart.rst

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,26 @@
1515
Quickstart
1616
===========
1717

18+
MONAI Label provides several end-to-end (E2E) tutorials for quickstart of sample apps, 3rd part viewer setup, plugin installation, and datastore.
19+
The E2E tutorials include basic functions of MONAI Label, such as auto-segmentation, active learning. Users can try monailabel server within the notebooks with these tutorials.
20+
For full experience, it's recommended for users to start monailabel server in local host machines.
21+
22+
Hone pagae of `MONAI Label Tutorials <https://github.com/Project-MONAI/tutorials/tree/main/monailabel>`_
23+
24+
25+
- **Radiology App**:
26+
- `MONAILabel: HelloWorld <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_HelloWorld_radiology_3dslicer.ipynb>`_: Spleen segmentation with 3D Slicer setups.
27+
- `MONAILabel: Web-based OHIF Viewer and Orthanc DICOM-web <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_radiology_spleen_segmentation_OHIF.ipynb>`_: OHIF and Orthanc DICOM-web server setup and installation.
28+
- **MONAIBUNDLE App**:
29+
- `MONAILabel: Pancreas Tumor Segmentation with 3D Slicer <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_pancreas_tumor_segmentation_3DSlicer.ipynb>`_: Pancreas and tumor segmentation with CT scans in 3D Slicer.
30+
- `MONAILabel: Multi-organ Segmentation with 3D Slicer <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_monaibundle_3dslicer_multiorgan_seg.ipynb>`_: Multi-organ segmentation with CT scans in 3D Slicer.
31+
- **Pathology App**:
32+
- `MONAILabel: Nuclei Segmentation with QuPath <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_pathology_nuclei_segmentation_QuPath.ipynb>`_ Nuclei segmentation with QuPath setup and Nuclick models.
33+
- **Endoscopy App**:
34+
- `MONAILabel: Tooltracking with CVAT <https://github.com/Project-MONAI/tutorials/blob/main/monailabel/monailabel_endoscopy_cvat_tooltracking.ipynb>`_: Surgical tool segmentation with CVAT/Nuclio setup.
35+
36+
In this page, users can follow some quick command lines for Radiology and monaibundle app.
37+
1838
Start Using MONAI Label with Sample Apps:
1939

2040
1. `Tutorial 1 - Radiology`_
@@ -251,7 +271,7 @@ If you do not have access to DICOM data to upload to the DICOM server you can co
251271
monailabel datasets --download --name Task09_Spleen --output .
252272
253273
# convert one of the NIFTI images to DICOM
254-
plastimatch convert --patient-id patient1 --input Task09_Spleen/imagesTs/spleen_10.nii.gz --output-dicom dicom_output
274+
plastimatch convert --patient-id patient1 --input Task09_Spleen/imagesTs/spleen_1.nii.gz --output-dicom dicom_output
255275
256276
Now, we can upload the DICOM series in ``dicom_output`` using the `upload <http://127.0.0.1:8042/app/explorer.html#upload>`_ link in Orthanc.
257277

@@ -275,12 +295,10 @@ endpoint of our DICOM server, which based on the last section is ``http://locaho
275295
276296
# For MONAI Label version <=0.2.0, pass credentials and start the DeepEdit app in MONAI label server
277297
# and start annotating images in our DICOM server
278-
monailabel start_server --app radiology --studies http://locahost:8042/dicom-web --conf models deepedit --username orthanc --password orthanc
298+
monailabel start_server --app radiology --studies http://locahost:8042/dicom-web --conf models deepedit
279299
280300
# For MONAI label version >=0.3.0, if you have authentication set for dicom-web then you can pass the credentials using environment
281301
#`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
284302
monailabel start_server --app apps/radiology --studies http://127.0.0.1:8042/dicom-web --conf models deepedit
285303
286304
At this point OHIF can be used to annotate the data in the DICOM server via the MONAI Label server ``/ohif`` endpoint
@@ -294,7 +312,6 @@ At this point OHIF can be used to annotate the data in the DICOM server via the
294312

295313
.. _Bundle:
296314

297-
================================================
298315
Tutorial 2 - Bundle App Tutorial and Use Cases
299316
================================================
300317

@@ -377,6 +394,8 @@ On the local machine follow the commands listed below to install MONAI Label, an
377394
monailabel datasets --download --name Task09_Spleen --output .
378395
379396
# start the bundle app in MONAI label server
397+
# the MONAI Bundle app requires access to MODEL ZOO, please set the authentication token first.
398+
export MONAI_ZOO_AUTH_TOKEN=<Your github auth token>
380399
# and start annotating the images using bundle with the Swin UNETR bundle
381400
monailabel start_server --app monaibundle --studies Task09_Spleen/imagesTr --conf models swin_unetr_btcv_segmentation
382401
@@ -430,6 +449,8 @@ Prerequisite: Check Model Zoo `Release <https://github.com/Project-MONAI/model-z
430449
monailabel datasets --download --name Task09_Spleen --output .
431450
432451
# Step 4: start the bundle app in MONAI label server
452+
# the MONAI Bundle app requires access to MODEL ZOO, please set the authentication token first.
453+
export MONAI_ZOO_AUTH_TOKEN=<Your github auth token>
433454
monailabel start_server --app monaibundle --studies Task09_Spleen/imagesTr --conf models renalStructures_UNEST_segmentation
434455
435456

sample-apps/monaibundle/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ Set **--conf auth_token <github personal access token>** to increate rate limits
6363
# skip this if you have already downloaded the app or using github repository (dev mode)
6464
monailabel apps --download --name monaibundle --output workspace
6565

66+
# the MONAI Bundle app requires access to MODEL ZOO, please set the authentication token first.
67+
export MONAI_ZOO_AUTH_TOKEN=<Your github auth token>
68+
6669
# List all available models from zoo
6770
monailabel start_server --app workspace/monaibundle --studies workspace/images
6871

@@ -86,6 +89,8 @@ If a valid scoring bundle model is provided with **--conf epistemic_model <bundl
8689
The loaded scoring bundle model can be either model-zoo models or local bundles, the network must support **dropout** argument.
8790

8891
```bash
92+
# the MONAI Bundle app requires access to MODEL ZOO, please set the authentication token first.
93+
export MONAI_ZOO_AUTH_TOKEN=<Your github auth token>
8994
# Use the UNet in spleen_ct_segmentation bundle as epistemic scoring model.
9095
# Manual define epistemic scoring parameters
9196
monailabel start_server \
@@ -167,6 +172,8 @@ monailabel datasets --download --name Task06_Lung --output datasets
167172
All models, datasets, and plugins are ready, start the MONAI Label server and open 3D Slicer to annotate!
168173

169174
```bash
175+
# the MONAI Bundle app requires access to MODEL ZOO, please set the authentication token first.
176+
export MONAI_ZOO_AUTH_TOKEN=<Your github auth token>
170177
# 1: Use LUNA16 sample data
171178
monailabel start_server --app apps/monaibundle --studies datasets/Task06_Lung/imagesTr --conf models lung_nodule_ct_detection
172179
# 2: Use Task06_Lung data for inference demonstration

0 commit comments

Comments
 (0)