-
Notifications
You must be signed in to change notification settings - Fork 668
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
Nvahmadi/3dregistration learn2reg #1513
Conversation
…ing (Learn2Reg 2023, NLST task)
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
thanks @nvahmadi @brudfors, this looks great, this PR is a good reminder that we should consider adding the point transform and collate fn to the core (Project-MONAI/MONAI#4027) in the future. also please have a look at the minor style issues:
|
for more information, see https://pre-commit.ci
Thanks @wyli - I just pushed changes to fix the minor style issues. A few notes: ---> 52 ax.set_aspect("equal")
|
thanks @nvahmadi, let me try to modify the config to ignore N812, there are a few other style issues, I'll try to fix them. |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[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, making the papermill test skipped as it took too much time
Awesome, thanks @wyli for the review, the fixes and for approving! Great to see this added! |
### Description Added MONAI tutorial for paired lung-CT **3D registration** with keypoint matching ([Learn2Reg 2023](https://learn2reg.grand-challenge.org/), NLST task), in collaboration with @brudfors. This is a modified version of the of the training code for the Learn2Reg-NLST submission by @brudfors (currently rank 14/111) in the challenge (see [leaderboard](https://learn2reg.grand-challenge.org/evaluation/nlst-validation/leaderboard/)). ### Contributions beyond current tutorial Compared to the current tutorial (`paired_lung_ct.ipynb`), this tutorial uses data from the current NLST task of the Learn2Reg 2023 challenge. The solution was developed in close alignment with the challenge organizer Mattias Heinrich (@mattiaspaul on GitHub) and collaborators, who will create a template test submission based on this solution. Together, these tutorials will serve as a MONAI-native guide on how to participate this year and in upoming iterations of Learn2Reg . Beyond challenge participation, the tutorial introduces a new datatype to MONAI (pointclouds) and demonstrates how easy it is to write custom transforms for them (I/O and linear transforms). It also shows how to write a custom multi-target loss function for registration that uses loss components from MONAI/PyTorch/custom-code. This composite loss can be flexibly used in both unsupervised (image-based) registration scenarios, as well as supervised registration tasks (i.e. with auxiliary keypoints and/or labelmaps). ### Checks - [ X ] Avoid including large-size files in the PR. - [ X ] Clean up long text outputs from code cells in the notebook. - [ X ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ X ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ X ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`. Note: The execution takes very long (approx. 50 mins, output of `runner.sh` below: ``` Executing: 100%|█████████████████████████████████████████████████████████████████████| 37/37 [49:42<00:00, 80.61s/cell] /home/ahmad/.local/lib/python3.8/site-packages/papermill/iorw.py:153: UserWarning: the file is not specified with any extension : - warnings.warn( real 49m46.070s user 10m25.173s sys 4m0.110s Testing finished. 0 of 1 executed tests passed! ``` ---------
Description
Added MONAI tutorial for paired lung-CT 3D registration with keypoint matching (Learn2Reg 2023, NLST task), in collaboration with @brudfors. This is a modified version of the of the training code for the Learn2Reg-NLST submission by @brudfors (currently rank 14/111) in the challenge (see leaderboard).
Contributions beyond current tutorial
Compared to the current tutorial (
paired_lung_ct.ipynb
), this tutorial uses data from the current NLST task of the Learn2Reg 2023 challenge. The solution was developed in close alignment with the challenge organizer Mattias Heinrich (@mattiaspaul on GitHub) and collaborators, who will create a template test submission based on this solution. Together, these tutorials will serve as a MONAI-native guide on how to participate this year and in upoming iterations of Learn2Reg .Beyond challenge participation, the tutorial introduces a new datatype to MONAI (pointclouds) and demonstrates how easy it is to write custom transforms for them (I/O and linear transforms). It also shows how to write a custom multi-target loss function for registration that uses loss components from MONAI/PyTorch/custom-code. This composite loss can be flexibly used in both unsupervised (image-based) registration scenarios, as well as supervised registration tasks (i.e. with auxiliary keypoints and/or labelmaps).
Checks
./figure
folder./runner.sh -t <path to .ipynb file>
. Note: The execution takes very long (approx. 50 mins, output ofrunner.sh
below: