|
35 | 35 | # pip_packages can be a string that is a path(str) to requirements.txt file or a list of packages. |
36 | 36 | # The monai pkg is not required by this class, instead by the included operators. |
37 | 37 | class AISpleennnUNetSegApp(Application): |
38 | | - """Demonstrates inference with built-in MONAI nnUNet Bundle inference operator with DICOM files as input/output |
| 38 | + """Demonstrates inference with built-in MONet Bundle inference operator with DICOM files as input/output |
39 | 39 |
|
40 | 40 | This application loads a set of DICOM instances, select the appropriate series, converts the series to |
41 | | - 3D volume image, performs inference with the built-in MONAI nnUNet Bundle inference operator, including pre-processing |
| 41 | + 3D volume image, performs inference with the built-in MONet Bundle inference operator, including nnUNet resampling,pre-processing |
42 | 42 | and post-processing, save the segmentation image in a DICOM Seg OID in an instance file, and optionally the |
43 | 43 | surface mesh in STL format. |
44 | 44 |
|
45 | 45 | Pertinent nnUNet MONAI Bundle: |
46 | 46 | <Upload to the MONAI Model Zoo> |
47 | 47 |
|
48 | 48 | Execution Time Estimate: |
49 | | - With a Nvidia RTXA600 48GB GPU, for an input DICOM Series of 139 instances, the execution time is around |
50 | | - 75 seconds with saving both DICOM Seg and surface mesh STL file. |
| 49 | + With a Nvidia RTXA600 48GB GPU, for an input DICOM Series of size 106x415x415 and patches of size 64x192x160, the execution time is around |
| 50 | + 50 seconds with saving both DICOM Seg and surface mesh STL file. |
51 | 51 | """ |
52 | 52 |
|
53 | 53 | def __init__(self, *args, **kwargs): |
@@ -162,16 +162,6 @@ def compose(self): |
162 | 162 | """ |
163 | 163 |
|
164 | 164 | if __name__ == "__main__": |
165 | | - # Creates the app and test it standalone. When running is this mode, please note the following: |
166 | | - # -m <model file>, for model file path |
167 | | - # -i <DICOM folder>, for input DICOM CT series folder |
168 | | - # -o <output folder>, for the output folder, default $PWD/output |
169 | | - # e.g. |
170 | | - # monai-deploy exec app.py -i input -m model/model.ts |
171 | | - # |
172 | | - # export HOLOSCAN_INPUT_PATH=dcm |
173 | | - # export HOLOSCAN_MODEL_PATH=spleen_model/model.ts |
174 | | - # export HOLOSCAN_OUTPUT_PATH="output" |
175 | 165 | logging.info(f"Begin {__name__}") |
176 | 166 | AISpleennnUNetSegApp().run() |
177 | 167 | logging.info(f"End {__name__}") |
0 commit comments