-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Restormer Implementation #8312
Restormer Implementation #8312
Conversation
…nsample class alias
…pass ./runtests.sh -f -u --net --coverage
for more information, see https://pre-commit.ci
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.
Looks good overall but I had a few inline comments, and we should have full docstrings everywhere appropriate. For any classes meant for general purpose use (ie. not just by Restormer) please ensure they have docstring descriptions for the arguments (at the very least for constructor args). Thanks!
Hi @ericspod, I finally managed to find some time to do the merge and be up-to-date with main. Now, in regards with the unit test, I placed them all in their appropriate folders mirroring the structure within source:
I also noticed that I have to move the import of |
… <[email protected]>, I, Cano-Muniz, Santiago <[email protected]>, hereby add my Signed-off-by to this commit: 55da640
I, Cano-Muniz, Santiago <[email protected]>, hereby add my Signed-off-by to this commit: 3c2dbc6 Signed-off-by: Cano-Muniz, Santiago <[email protected]>
…ition, solve DCO: DCO Remediation Commit for tisalon <[email protected]> I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 8faa5da I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 091887b I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 5d162d0 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: f520e99 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 39d1edf I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 5b3d4e1 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 1683b14 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 232be1c I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: d1df8e6 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 78ce56b I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: ce15886 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 30fad17 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 529e90b I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: c109029 I, tisalon <[email protected]>, hereby add my Signed-off-by to this commit: 19c30f7 Signed-off-by: tisalon <[email protected]>
…ses based on einops availability, and solve last DCO issue: I, Cano-Muniz, Santiago <[email protected]>, hereby add my Signed-off-by to this commit: f17e06e Signed-off-by: Cano-Muniz, Santiago <[email protected]>
…o black 25.1.0, Signed-off-by: Cano-Muniz, Santiago <[email protected]>
for more information, see https://pre-commit.ci
…less lower so that it interpreted first). Signed-off-by: Cano-Muniz, Santiago <[email protected]>
for more information, see https://pre-commit.ci
…r.py. Signed-off-by: Cano-Muniz, Santiago <[email protected]>
…le.py, restormer.py and test_downsample_block.py. Signed-off-by: Cano-Muniz, Santiago <[email protected]>
@ericspod and @aylward, Thanks for your patience with this PR. It seems like the unit tests were creating a barrier to moving forward. The solution was actually quite simple - just needed to change the order of the SkipUnless decorator (since lower decorators execute first). You can now see that all the checks pass (except DCO due to some unsigned commits by other authors) Does this address all the concerns? How would you like me to finalize these changes before the merge? |
Hi @phisanti We've done some updates to requirements and our testing process. I've updated your branch now so we'll see if things get broken, but if not what's left is to sort the DCO issue. The instruction you're given should be correct for doing a remedial commit, but if not we can work that out. |
Hi @ericspod, I'm glad to hear the code passes the checks! Regarding the DCO issue, I notice it requires specific remediation commits from Eric Kerfoot and Yiheng Wang. Since I'm not either of these authors, I don't think I can directly address this DCO requirement myself. What would be the appropriate next steps here to get this resolved? |
/build |
I think in the interest of progress we should merge this now, we can come back to further comment and amendments if we need of course.
/build |
Fixes # .
Description
This PR implements the Restormer architecture for high-resolution image restoration in MONAI following the discussion in issue #8261. The implementation supports both 2D and 3D images using MONAI's convolution as the base. Key additions include:
The implementation follows MONAI's coding patterns and includes performance validations against native PyTorch operations where applicable.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.