Skip to content
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

1587 add regularizer demo #1589

Merged
merged 7 commits into from
Dec 27, 2023
Merged

Conversation

kvttt
Copy link
Contributor

@kvttt kvttt commented Dec 9, 2023

Fixes #1587.

Description

As mentioned in #1587, the notebook should contain

  • Formula for bending energy and diffusion,
  • Demonstration that bending energy is not scale invariant while diffusion is not scale invariant in some cases (maybe display examples of these cases), and
  • How both losses are made invariant by specifying normalize=True.

Checks

  • Avoid including large-size files in the PR.
  • Clean up long text outputs from code cells in the notebook.
  • For security purposes, please check the contents and remove any sensitive info such as user names and private key.
  • 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
  • Notebook runs automatically ./runner.sh -t <path to .ipynb file>

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@kvttt kvttt marked this pull request as ready for review December 10, 2023 17:04
@KumoLiu KumoLiu requested review from ericspod and Nic-Ma December 11, 2023 05:55
Copy link
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, overall looks good to me.
Could you please add a mention here? Thanks!

@kvttt
Copy link
Contributor Author

kvttt commented Dec 12, 2023

Hi @ebrahimebrahim, would you mind taking a look at this? I'm also wondering if I should mention your notebook somewhere in here. But anyways let me know what you think :)

@ebrahimebrahim
Copy link
Contributor

ebrahimebrahim commented Dec 12, 2023

Yes, happy to look it over! Can someone add me as a reviewer? I will try to look at it this week.

No need to mention the earlier notebook I think. One thing you could do is to add

Co-authored-by: Ebrahim Ebrahim <[email protected]>

to the body of the commit message that says add regularizer demo
but it is not too important

@ebrahimebrahim
Copy link
Contributor

@kvttt Added my suggestions. It looks great; thank you for putting this together!!

I really like the separation between unequal and equal scaling of images. Everything is very clear and nicely organized.

Co-authored-by: Ebrahim Ebrahim <[email protected]>
Signed-off-by: kaibo <[email protected]>
Co-authored-by: Ebrahim Ebrahim <[email protected]>
Signed-off-by: kaibo <[email protected]>
@KumoLiu KumoLiu merged commit 936c548 into Project-MONAI:main Dec 27, 2023
5 checks passed
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
Fixes Project-MONAI#1587.

### Description
As mentioned in Project-MONAI#1587, the notebook should contain
- [x] Formula for bending energy and diffusion,
- [x] Demonstration that bending energy is not scale invariant while
diffusion is not scale invariant in some cases (maybe display examples
of these cases), and
- [x] How both losses are made invariant by specifying `normalize=True`.

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [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.
- [ ] 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>`

---------

Signed-off-by: kaibo <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ebrahim Ebrahim <[email protected]>
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.

Add bending energy and diffusion regularizer demo
3 participants