Skip to content

[BUG] monai.deploy.exceptions.ItemNotExistsError: A predictor of the model is not set #221

Closed
@Suchi97

Description

@Suchi97

Describe the bug
We are working on deployment of spleen segmentation using monai deploy, we are using pretrained models from ngc for spleen segmentation from (https://catalog.ngc.nvidia.com/orgs/nvidia/teams/med/models/clara_pt_spleen_ct_segmentation) link.

Similarly we are using the app.py from examples in deploy-app-sdk(https://github.com/Project-MONAI/monai-deploy-app-sdk/tree/main/examples/apps/ai_spleen_seg_app).
when we run python app.py -i ./dcm -o ./output -m ./model.pt .

We get the following error

raise ItemNotExistsError("A predictor of the model is not set.")
monai.deploy.exceptions.ItemNotExistsError: A predictor of the model is not set.

We tried our own trained model and still got the same error.

Steps/Code to reproduce bug

  1. Used app.py from examples in monai-deploy-app-sdk(https://github.com/Project-MONAI/monai-deploy-app-sdk/tree/main/examples/apps/ai_spleen_seg_app)
  2. Run the python app.py -i ./dcm -o ./output -m ./model.pt
    1. Input images from ai_spleen_seg_data which is provided in the MONAI Deploy Segmentation App documentation
    2. Used pretrained model from ngc for spleen segmentation from (https://catalog.ngc.nvidia.com/orgs/nvidia/teams/med/models/clara_pt_spleen_ct_segmentation) link.

Expected behavior
We expect the pretrained model from the link , also results in the output without any issues.

Environment details (please complete the following information)

  • OS/Platform: linux 4.15.0-136-generic
  • Python Version: Python 3.8.10 | packaged by conda-forge
  • Method of MONAI Deploy App SDK install: [pip, conda, Docker, or from source] : pip install monai-deploy-app-sdk
  • SDK Version: 0.2.0

Additional context
This works fine for the spleen model downloaded from google drive link (https://drive.google.com/uc?id=1uTQsm8omwimBcp_kRXlduWBP2M6cspr1) which was in the tutorial MONAI Deploy Segmentation App documentation

Is there any specific thing we need to do while saving and using the model with deploy app sdk.

Any suggestion and help is appreciated. Thank you

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions