raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes
https://raidionics.github.io/
BSD 2-Clause "Simplified" License
32 stars 4 forks source link

Preparing the configuration file for running MRI_GBM_Postop_FV_5p model in Colab Notebook #67

Closed gusSCIMOV closed 10 months ago

gusSCIMOV commented 10 months ago

Hi Could you please get me a quick guidance to update the https://colab.research.google.com/gist/dbouget/f87576cdae559ce2a328f0ba7f60828d/02_run_simple_reporting.ipynb notebook ? as I'm interested in running the post-op model ( MRI_GBM_Postop_FV_5p) and I'd like to know how to set up rightly the respective pipeline.json file in. I've already tried the GUI releases, but I'd like to setup it accordingly for running in another server with better capabilities. So far, I'm grateful with this great tool. Best GP

dbouget commented 10 months ago

Hi @gusSCIMOV, I've added a new notebook regarding how to run the postoperative GBM segmentation model, and a second notebook including the postoperative reporting step.

Don't hesitate to re-open this issue if you need additional help!

gusSCIMOV commented 10 months ago

Oh thank you so much for your timely and quick reply. Works pretty good with the Pre-op Post-op pair. Just a more specific question about it: Even though we should include the pre-surgical tumor burden to get better estimation of the post-surgery, I'm dealing with a mix of MRI where Pre-operative scans are not always available. In those cases, may I comment and skip the steps involving Pre-op MRI and only use the 4 Post-op modalities? For example; going over and just commenting the full blocks related with "Registration from T1-CE (T0) to T1-CE (T1) or the input[3] and input[4] as well (timestamp 0)

pipeline_json[step_str]["fixed"]["sequence"] = "T1-CE" pipeline_json[step_str]["description"] = "Registration from T1-CE (T0) to T1-CE (T1)"

pipeline_json[step_str]["inputs"]["3"] = {} pipeline_json[step_str]["inputs"]["3"]["timestamp"] = 0 pipeline_json[step_str]["inputs"]["3"]["sequence"] = "T1-CE" pipeline_json[step_str]["inputs"]["3"]["labels"] = None pipeline_json[step_str]["inputs"]["3"]["space"] = {} pipeline_json[step_str]["inputs"]["3"]["space"]["timestamp"] = 1 pipeline_json[step_str]["inputs"]["3"]["space"]["sequence"] = "T1-CE" pipeline_json[step_str]["inputs"]["4"] = {} pipeline_json[step_str]["inputs"]["4"]["timestamp"] = 0 pipeline_json[step_str]["inputs"]["4"]["sequence"] = "T1-CE" pipeline_json[step_str]["inputs"]["4"]["labels"] = "Tumor" pipeline_json[step_str]["inputs"]["4"]["space"] = {} pipeline_json[step_str]["inputs"]["4"]["space"]["timestamp"] = 1 pipeline_json[step_str]["inputs"]["4"]["space"]["sequence"] = "T1-CE"

Thanks GP

dbouget commented 10 months ago

I've updated the README to the Raidionics model zoo. There are 5 different postop glioblastoma segmentation models, each trained for a specific set of inputs.

If you need to run a model on postop MR scans only, you can look at the following models: MRI_GBM_Postop_FV_1p, MRI_GBM_Postop_FV_2p, and MRI_GBM_Postop_FV_3p. There is a pipeline.json file inside each model folder, where you can copy the actual pipeline required for running the segmentation with the specific model.

gusSCIMOV commented 5 months ago

Hi I've been working a time ago with many of the Colab notebooks added in "processing backend for performing segmentation and computation of standardized report (RADS)" coming up from this request by the way. It has been quite useful

I just wondering if I might get the BRATs-like output (Edema, enhancing, necrosis) using just the post-operative scans using the MRI_GBM_Postop_FV_1p or FV_3p, instead of the whole tumor mask, does it make sense now?

Thanks, a really appreciate your help

andreped commented 5 months ago

@gusSCIMOV AFAIK, there has not been trained such a model for postoperative scans (yet). But I know @dbouget is working on expanding the model to include more classes in the postoperative case. However, I am not sure what the status is on that. Likely still a WIP.

I believe @dbouget is on holiday till Tuesday. He will likely not reply until then at the earliest.


NOTE: Next time I recommend making a separate issue and referring to this old issue (if relevant) instead of extending this thread. Making a new issue for this, makes it easier for us to track "unsolved" issues and for others to potentially find solutions to their own problems. I hope you understand :]

gusSCIMOV commented 4 months ago

Sure, it would be great if there is some progress in that expanded model

andreped commented 4 months ago

Sure, it would be great if there is some progress in that expanded model

@gusSCIMOV Could you open a separate issue about it, copy-paste the question you had and refer to this issue.

Then I can assign @dbouget to it and he should likely reply soon, when he has time :]