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

Adding padding option to autoencoder #7068

Merged
merged 3 commits into from
Sep 30, 2023
Merged

Adding padding option to autoencoder #7068

merged 3 commits into from
Sep 30, 2023

Conversation

JupiLogy
Copy link
Contributor

@JupiLogy JupiLogy commented Sep 30, 2023

Fixes #7045 .

Description

Added "padding" option to monai/network/nets/autoencoder.py such that the conv and residual units will be passed the padding option.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • 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.

Notes

I haven't been able to run the ./runtests.sh, even tried running ./runtests.sh -h and got no output (no error or anything). I guess I don't have permissions to run .sh files on this machine. However the changes are very small and default to previous functionality so unless somebody passes a padding argument, this should not break existing usage of the function.

More or less copied from monai/blocks/convolutions.py
DCO Remediation Commit for Jupilogy <j.dick@lboro.ac.uk>

I, Jupilogy <j.dick@lboro.ac.uk>, hereby add my Signed-off-by to this commit: 0e0d5e9
I, Jupilogy <j.dick@lboro.ac.uk>, hereby add my Signed-off-by to this commit: dec2b99
I, Jupilogy <j.dick@lboro.ac.uk>, hereby add my Signed-off-by to this commit: e322d1d

Signed-off-by: Jupilogy <j.dick@lboro.ac.uk>
@wyli
Copy link
Member

wyli commented Sep 30, 2023

/build

@wyli wyli enabled auto-merge (squash) September 30, 2023 14:08
Copy link
Member

@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, it looks good to me, merging once premerge tests pass

@wyli wyli merged commit 2b39067 into Project-MONAI:dev Sep 30, 2023
31 checks passed
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 Padding as an Argument to AutoEncoder
2 participants