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

NACLLoss memory management #8020

Merged
merged 58 commits into from
Aug 15, 2024
Merged

Conversation

Bala93
Copy link
Contributor

@Bala93 Bala93 commented Aug 15, 2024

Fixes # .

Description

Calling contiguous after applying the permute option to work with view operation in apply_filter (

x = x.view(1, kernel.shape[0], *spatials)
).

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Bala93 and others added 30 commits June 1, 2024 22:11
Fix the order of loss function in import statement
Fixed the formatting and minor issues.
Reorder import statements
Reorder system imports.
isort inferred one
Updated class name according to standard
Fixed the inline comment
Add datatype in functions and classes
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Add model description.
Fixed the initialization issues with return types
Use Any instead of tensor
Import typing
Fix return type formatting
Fix parameter datatype
Bala93 and others added 21 commits August 5, 2024 14:25
DCO Remediation Commit for bala93 <balamuralim.1993@gmail.com>
I, Balamurali <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: c4f8283
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 8fbec82
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 7c121a0
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: dccde47

Signed-off-by: bala93 <balamuralim.1993@gmail.com>
DCO Remediation Commit for bala93 <balamuralim.1993@gmail.com>

I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 8fbec82
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 7c121a0
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: dccde47

Signed-off-by: bala93 <balamuralim.1993@gmail.com>
DCO Remediation Commit for Balamurali <balamuralim.1993@gmail.com>

I, Balamurali <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: bc6b995

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
DCO Remediation Commit for Balamurali <balamuralim.1993@gmail.com>

I, Balamurali <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: bc6b995

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
I, bala93 <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 3a00aec

Signed-off-by: bala93 <balamuralim.1993@gmail.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
* Modify the code with MeanFilter, and GaussianFilter of MONAI layers
* Add Doc string explaining the mask preparation

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
DCO Remediation Commit for Balamurali <balamuralim.1993@gmail.com>

I, Balamurali <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: 7deb2cc

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Call contiguous after permute to avoid reshaping issue.
Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 15, 2024

Hi @Bala93, please help sign off to fix the DCO issue, then I can help trigger more tests.
https://github.com/Project-MONAI/MONAI/pull/8020/checks?check_run_id=28797284498

I, Balamurali <balamuralim.1993@gmail.com>, hereby add my Signed-off-by to this commit: f579763

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
@Bala93
Copy link
Contributor Author

Bala93 commented Aug 15, 2024

Hi @KumoLiu, thanks for the immediate response. I also added the test case for testing with batch size>1, which was failing in the previous version.

@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 15, 2024

/build

@KumoLiu KumoLiu enabled auto-merge (squash) August 15, 2024 07:54
@KumoLiu KumoLiu merged commit 7b9a523 into Project-MONAI:dev Aug 15, 2024
28 checks passed
rcremese pushed a commit to rcremese/MONAI that referenced this pull request Sep 2, 2024
Fixes # .

### Description

Calling contiguous after applying the permute option to work with view
operation in apply_filter
(https://github.com/Project-MONAI/MONAI/blob/59a7211070538586369afd4a01eca0a7fe2e742e/monai/networks/layers/simplelayers.py#L293).

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Balamurali <balamuralim.1993@gmail.com>
Signed-off-by: bala93 <balamuralim.1993@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.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.

2 participants