File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
examples/apps/breast_density_classifer_app Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
from breast_density_classifier_operator import ClassifierOperator
2
2
3
- from monai .deploy .core import Application
3
+ from monai .deploy .core import Application , env
4
4
from monai .deploy .operators .dicom_data_loader_operator import DICOMDataLoaderOperator
5
5
from monai .deploy .operators .dicom_series_selector_operator import DICOMSeriesSelectorOperator
6
6
from monai .deploy .operators .dicom_series_to_volume_operator import DICOMSeriesToVolumeOperator
7
7
from monai .deploy .operators .dicom_text_sr_writer_operator import DICOMTextSRWriterOperator , EquipmentInfo , ModelInfo
8
8
9
9
10
+ @env (pip_packages = ["highdicom>=0.18.2" ])
10
11
class BreastClassificationApp (Application ):
11
12
def __init__ (self , * args , ** kwargs ):
12
13
super ().__init__ (* args , ** kwargs )
@@ -36,7 +37,7 @@ def compose(self):
36
37
self .add_flow (classifier_op , sr_writer_op , {"result_text" : "classification_result" })
37
38
38
39
39
- def main ():
40
+ def test ():
40
41
app = BreastClassificationApp ()
41
42
image_dir = "./sampleDICOMs/1/BI_BREAST_SCREENING_BILATERAL_WITH_TOMOSYNTHESIS-2019-07-08/1/L_CC_C-View"
42
43
@@ -45,4 +46,4 @@ def main():
45
46
46
47
47
48
if __name__ == "__main__" :
48
- main ( )
49
+ app = BreastClassificationApp ( do_run = True )
You can’t perform that action at this time.
0 commit comments