MONAILabel icon indicating copy to clipboard operation
MONAILabel copied to clipboard

MONAILabel Inference Requests for specific image IDs.

Open kenbutcher opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. We are continuing to develop the workflow between Xnat and MONAILabel.

Could we please add the ability to trigger inference requests from xnat for a specific image id. We need to call a batch inference with specific image ids.

kenbutcher avatar Mar 08 '24 10:03 kenbutcher

This should be straight forward just change the BatchInferTask to check on the image_ids in the request and use them if they exist, other wise do the current behavior

### BatchInferTask class
    def __call__(self, request, datastore: Datastore, infer: Callable):
        image_ids = request.get("image_ids", "")
        if image_ids:
            request["multi_gpu"] = False
            request["result_extension"] = ".nii.gz"  ### should limit this for xnat workflow only
        else:
            image_ids = sorted(self.get_images(request, datastore))

AHarouni avatar Mar 08 '24 17:03 AHarouni

@AHarouni Want to request this feature too. Thank you in advance :)

DrRadiohead2 avatar Jun 29 '24 10:06 DrRadiohead2