Skip to content

Conversation

@yiheng-wang-nv
Copy link
Contributor

@yiheng-wang-nv yiheng-wang-nv commented Feb 26, 2021

Since the old tutorial notebook may has some issues (like the bad performance for anisotropic data, wrong data loading function due to different dataset format and so on), recently I build a new pipeline to improve it. The training scripts for all 10 Decathlon tasks are included.

This PR is used to replace #131 , since it used the same branch as #126 does.

Due to the forward function's changes of DynUNet, this commit
update the corresponding places, as well as the loss calculation
for trainer.

In addition, the DiceCEloss has been implemented in MONAI, thus the
self-designed loss function part has also been updated.

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@yiheng-wang-nv yiheng-wang-nv marked this pull request as ready for review March 9, 2021 14:26
@yiheng-wang-nv yiheng-wang-nv requested review from Nic-Ma, rijobro and wyli and removed request for Nic-Ma March 9, 2021 14:27
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks, I had a quick look and put some minor comments, I'll have another look. is the notebook repeating the python script's content, shall we remove that?

filename, predictions_org.shape, predictions_org.mean()
)
)
results_img = nib.Nifti1Image(
Copy link
Contributor

Choose a reason for hiding this comment

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

why not using the NiftiSaver from monai?

Copy link
Contributor Author

@yiheng-wang-nv yiheng-wang-nv Mar 11, 2021

Choose a reason for hiding this comment

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

Hi @wyli , thanks for review. Since I do not use MONAI based resampling method, here using nib directly seems easier. What do you think? Do I need to modify it? In addition, all other places are modified.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes please try to use 'nifti_writer', we should use monai components as much as possible. the main goal is to verify the monai components and make a high quality demo using monai.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @wyli , I have modified. The old notebook have many duplicate contents, as well as some unreasonable hyperparameters. I removed it in the latest commit.

Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks!

@wyli wyli merged commit 6bd8922 into master Mar 16, 2021
@wyli wyli deleted the dynunet-new-pipeline branch April 20, 2021 14:17
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
* Update DynUNet

Due to the forward function's changes of DynUNet, this commit
update the corresponding places, as well as the loss calculation
for trainer.

In addition, the DiceCEloss has been implemented in MONAI, thus the
the self-designed loss function part has also been updated.

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
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.

3 participants