Skip to content

Conversation

@innat-asj
Copy link

I've built a medical ai toolkit for 3d segmentation using keras 3. https://github.com/innat/medic-ai (medicai). Using this I've implemented a complete workflow for 3d medical imaging end-to-end training. The medicai is greatly inspired by monai, which mainly works in torch ecosystem.

Now, using this toolkit, I've implemented this code example for multi-modal brain tumor segmentation task. Please let me know if it is suitable to add in keras code example.

Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks! Just some comments on avoiding google drive.


These region-wise groupings allow for evaluation across different tumor structures relevant for clinical assessment and treatment planning. A sample view is shown below, figure taken from [BraTS-benchmark](https://arxiv.org/pdf/2107.02314v1) paper.

![](https://drive.google.com/uc?export=view&id=1qVdMXAB84oYEDTt0xKLCEIl-XbB_fVWx)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should move any assets out of a personal drive. there should be examples of guide assets elsewhere on keras.io

)
from medicai.utils.inference import SlidingWindowInference

print(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, use format strings?

In this [Kaggle notebook](https://www.kaggle.com/code/ipythonx/3d-brats-segmentation-in-keras-multi-gpu/) (version 2), we trained the model on the entire dataset for approximately 25 epochs. The resulting weights will be used for further evaluation. Note that the validation set used in both the Colab and Kaggle notebooks is the same: `training_shard_36.tfrec`, which contains `8` samples. We will be evaluating the model per-class and on average.
"""

model_weight = gdown.download(id="1b-DpZkMsAX6I-niuLu7h8_y3XiaSHFyN", quiet=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you just upload these to kaggle? nice than gdown here (and we are already using kaggle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants