Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
Signed-off-by: YunLiu <[email protected]>
  • Loading branch information
KumoLiu committed Oct 15, 2024
1 parent 6b8c638 commit 0e1d13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/spleen_ct_segmentation_real_time/scripts/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ class InferenceWorkflow(PythonicWorkflow):
from monai.bundle import create_workflow
from monai.transforms import LoadImaged
workflow = create_workflow("inference.InferenceWorkflow", dataset_dir="/workspace/Data/Task09_Spleen")
workflow = create_workflow("inference.InferenceWorkflow")
workflow.initialize()
input_loader = LoadImaged(keys="image")
workflow.dataflow.update(input_loader({"image": "/workspace/Data/Task09_Spleen/imagesTr/spleen_46.nii.gz"}))
workflow.run()
# update dataflow
workflow.dataflow.clear()
workflow.dataflow.update({"image": "/workspace/Data/Task09_Spleen/imagesTr/spleen_38.nii.gz"})
workflow.dataflow.update(input_loader({"image": "/workspace/Data/Task09_Spleen/imagesTr/spleen_38.nii.gz"}))
workflow.run()
"""
Expand Down

0 comments on commit 0e1d13f

Please sign in to comment.