Open AHarouni opened 1 year ago
please use CURL command (Try APIs) to run any of the background tasks.. you don't need 3D slicer
And yes.. client.py can have batch_infer function.. if possible please raise a PR to add this functionality for client.py
Describe the solution you'd like From slicer UI user can trigger segmentation with multiple config parameters that he can set. Similarly we need an option to easily call batch inference with the same configs. Moreover, we should have a progress bar showing the progress of the batch infer job.
Describe alternatives you've considered I can use the monai label swagger UI to call batch infer but I then need to type in all the configs which is error prone.
Additional context I managed to hack a solution in the slicer client by having a pop up to ask if I should do batch infer or run single image. Cleaner option is to add a new button along with may be more parameters related to batch inference as number of gpus to use. Code below works on my end
added function below in class MONAILabelLogic(ScriptedLoadableModuleLogic):
in the client.py file I added the batch_infer function call