Skip to content

Commit 3dfba51

Browse files
authored
Update guide of using customized bundle in MONAILabel and endoscopy integration test (#1085)
1 parent 007710d commit 3dfba51

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

docs/source/quickstart.rst

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -409,31 +409,26 @@ Now get the automatic inference of the trained SwinUNETR model!
409409
Use Case 2: Bundle with Customized Scripts for Renal Substructure Segmentation
410410
=================================================================================
411411

412-
This use case provides an instruction on using bundle model with customized scripts.
412+
This use case (renalStructures_UNEST_segmentation_v0.2.0) provides an instruction on using bundle model with customized scripts.
413413

414414
Prerequisite: Check Model Zoo `Release <https://github.com/Project-MONAI/model-zoo/releases/tag/hosting_storage_v1>`_.
415415

416416
.. code-block:: bash
417417
418-
# install MONAI Label
418+
# Step 1: install MONAI Label
419419
pip install monailabel
420420
421-
# download Bundle sample app to local directory
421+
# Step 2: download Bundle sample app to local directory
422422
monailabel apps --name monaibundle --download --output .
423423
424-
# download a local study images, sample dataset such as spleen:
424+
# Step 3: download a local study images, sample dataset such as spleen CT (contrast enhanced CTs are better):
425425
monailabel datasets --download --name Task09_Spleen --output .
426426
427-
# download the bundle move the downloaded ZIP file to the MONAILable/sample-apps/monaibundle/model and unzip
428-
# and save to the monaibundle/model and direct to the customized bundle folder
429-
cd <path to the bundle model>/renalStructures_UNEST_segmentation_v0.1.0
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"
430429
431-
# add customized scripts in the downloaded bundle
432-
export PYTHONPATH=$PYTHONPATH:"'/monaibundle/model/renalStructures_UNEST_segmentation_v0.1.0/scripts"
433-
434-
# start the bundle app in MONAI label server
435-
monailabel start_server --app <full path to the monaibundle app/monaibundle> --studies <path to the local dataset/Task09_Spleen/imagesTr>
436-
--conf models renalStructures_UNEST_segmentation_v0.1.0
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
437432
438433
439434

tests/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def run_main():
3535
shutil.copy(downloaded_pathology_file, os.path.join(TEST_DATA, "pathology"))
3636

3737
downloaded_endoscopy_file = os.path.join(TEST_DIR, "downloads", "endoscopy_frames.zip")
38-
endoscopy_url = "https://drive.google.com/uc?export=download&id=115fS_RZxOXMFb3wgepS2aJA2XYpXjHOU"
38+
endoscopy_url = "https://github.com/Project-MONAI/MONAILabel/releases/download/data/endoscopy_frames.zip"
3939
if not os.path.exists(downloaded_endoscopy_file):
4040
download_url(url=endoscopy_url, filepath=downloaded_endoscopy_file)
4141
if not os.path.exists(os.path.join(TEST_DATA, "endoscopy")):

0 commit comments

Comments
 (0)