-
Notifications
You must be signed in to change notification settings - Fork 739
Create deepedit tutorial #661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
for more information, see https://pre-commit.ci
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Hi @diazandr3s , Thanks very much for the tutorial! What do you think? Thanks in advance. |
Thanks for the tutorial! It's great to have a tutorial introducing DeepEdit but I think it needs more explanation about what's going on and what the moving parts are. The notebook doesn't make clear what the specific elements of DeepEdit are and how they're used, in the first part there is a sequence of transforms which appears to add a landmark into the data dictionary, but the parts which do this aren't explained and the use for this isn't made clear. In the second part a pretrained model is used to segment but how that relates to the first part isn't clear. I understand what the moving pieces are in DeepEdit from other presentations but this needs to be motivated here. There's a number of functions in the notebook for plotting, you might want to put these into a PR in core to be kept here if they're generic enough. A general routine for overlaying landmarks would be useful in general. There's also a lot of code in the If would be great if this model were packaged into a bundle with an added inference.json file at least, a training.json file would be great as well that replicated what's in the training script. It would be easier to take the model into other contexts such as deployment. |
Many thanks for your comments and suggestions, @Nic-Ma @ericspod. They are helpful! :) I'll create a couple of PRs to MONAI core to include custom transforms, custom interaction, and common plotting functions ... All this to simplify the tutorial. I'll also make the steps/content clearer I really like the idea of creating a bundle for DeepEdit. I'll work on this once we have the latest version of the tutorial. Will keep you posted! |
@diazandr3s, we plan to release MONAI 0.9 in mid-June. Can you try to finish this DeepEdit bundle before end of May? Thanks. |
Yes, I'll be working on this next week. |
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Quick update on this:
Once I have the MONAI release candidate or MONAI weekly version, I'll update the files |
Signed-off-by: Andres Diaz-Pinto <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Andres Diaz-Pinto <[email protected]>
…rials into deepeditTutorial
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Signed-off-by: Andres Diaz-Pinto <[email protected]>
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested both the DynUNet and UNETR? May I know the difference in the result?
Thanks.
View / edit / reply to this conversation on ReviewNB Nic-Ma commented on 2022-05-09T09:55:05Z Please add these optional imports in above cell directly. Refer to other tutorial: https://github.com/Project-MONAI/tutorials/blob/master/3d_segmentation/spleen_segmentation_3d_lightning.ipynb
Thanks.
|
View / edit / reply to this conversation on ReviewNB Nic-Ma commented on 2022-05-09T09:55:06Z Line #35. print("Final PLOT:: {} => image shape: {}, pred shape: {}; min: {}, max: {}, sum: {}".format( I think here it plot too many charts, could you please help reduce them? Maybe less than 10 charts?
Thanks.
|
Yes! It works better than the DynUNET. But I wanted to keep the DynUNET as default as it takes less time training |
Agree! |
Agree. Just changed it |
Signed-off-by: Andres Diaz-Pinto <[email protected]>
…rials into deepeditTutorial
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Signed-off-by: Andres Diaz-Pinto <[email protected]>
Signed-off-by: Andres Diaz-Pinto <[email protected]>
I think you don't need to add another variable Thanks. |
agree! |
Signed-off-by: Andres Diaz-Pinto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks.
* Create deepedit tutorial Signed-off-by: Andres Diaz-Pinto <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update train file Signed-off-by: Andres Diaz-Pinto <[email protected]> * Move custom transforms and interaction to MONAI core Signed-off-by: Andres Diaz-Pinto <[email protected]> * Update imports from MONAI Signed-off-by: Andres Diaz-Pinto <[email protected]> * Update Notebook and Readme Signed-off-by: Andres Diaz-Pinto <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix static errors in Notebook Signed-off-by: Andres Diaz-Pinto <[email protected]> * Fix spaces autofix Signed-off-by: Andres Diaz-Pinto <[email protected]> * Update DeepEdit transform names Signed-off-by: Andres Diaz-Pinto <[email protected]> * Update Readme Signed-off-by: Andres Diaz-Pinto <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Address first round of comments Signed-off-by: Andres Diaz-Pinto <[email protected]> * Fix static issues Signed-off-by: Andres Diaz-Pinto <[email protected]> * Fix static Signed-off-by: Andres Diaz-Pinto <[email protected]> * Fix static erros Signed-off-by: Andres Diaz-Pinto <[email protected]> * Address second round of comments Signed-off-by: Andres Diaz-Pinto <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Andres Diaz-Pinto [email protected]
Description
Add tutorial to run deepedit model on MONAI Core
Status
Ready