Skip to content

Conversation

@matthieutrs
Copy link
Collaborator

@matthieutrs matthieutrs commented Jun 9, 2025

Checks to be done before submitting your PR

  • python3 -m pytest tests/ runs successfully.
  • black . runs successfully.
  • make html runs successfully (in the docs/ directory).
  • Updated docstrings related to the changes (as applicable).
  • Added an entry to the CHANGELOG.rst.

@codecov
Copy link

codecov bot commented Jun 9, 2025

Codecov Report

❌ Patch coverage is 81.15450% with 111 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.03%. Comparing base (25224a4) to head (5b24833).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
deepinv/models/ram.py 79.44% 48 Missing and 26 partials ⚠️
deepinv/tests/test_models.py 77.61% 11 Missing and 4 partials ⚠️
deepinv/tests/test_physics.py 87.64% 11 Missing ⚠️
deepinv/physics/wrappers.py 82.14% 10 Missing ⚠️
deepinv/physics/blur.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #524      +/-   ##
==========================================
+ Coverage   83.01%   83.03%   +0.01%     
==========================================
  Files         196      198       +2     
  Lines       18451    19017     +566     
  Branches     2470     2553      +83     
==========================================
+ Hits        15318    15791     +473     
- Misses       2283     2354      +71     
- Partials      850      872      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tachella
Copy link
Contributor

do you think you can make a demo file too? maybe with some finetuning at the end?

@matthieutrs
Copy link
Collaborator Author

still todo:

  • add example
  • check docs

@matthieutrs matthieutrs marked this pull request as ready for review June 24, 2025 11:44
Copy link
Contributor

@tachella tachella left a comment

Choose a reason for hiding this comment

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

many thanks for this!

On top of the suggested changes to the demo to Poisson, I think I would change the way the model is added to the User Guide. I would suggest to add it in the list of Denoisers

(since it can be used as a denoiser), and also as a 'Specific Networks'

although the name specific is somewhat contradictory, and maybe we should call them differently 'Other Models'? Maybe a good option is to keep two subsections, one with Problem-Specific (for eg PanNet) and General Models for DPIR and RAM?

Copy link
Collaborator

@Andrewwango Andrewwango left a comment

Choose a reason for hiding this comment

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

CHANGELOG please.

Thanks for integrating RAM into deepinv, here are some comments!

@matthieutrs
Copy link
Collaborator Author

matthieutrs commented Jul 4, 2025

Thanks @Andrewwango!

I'm halfway through your comments - I'll ping you when done.

TODO: compare with MultiScalePhysics

Copy link
Collaborator

@Andrewwango Andrewwango left a comment

Choose a reason for hiding this comment

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

Thanks Matthieu! hopefully nearing the end, some comments and questions:

Copy link
Contributor

@tachella tachella left a comment

Choose a reason for hiding this comment

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

some more changes, mostly on docs and efficiency

Copy link
Collaborator

@Andrewwango Andrewwango left a comment

Choose a reason for hiding this comment

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

Adding a Request changes to fix performance tests discussed offline.

@Andrewwango
Copy link
Collaborator

I've added the RAM example directly in e89ffaa in my PR #622 and made some changes, so I'm happy to merge this first

@Andrewwango Andrewwango self-requested a review August 4, 2025 09:28
jscanvic added a commit to jscanvic/deepinv that referenced this pull request Aug 4, 2025
Copy link
Collaborator

@Andrewwango Andrewwango left a comment

Choose a reason for hiding this comment

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

LGTM

@tachella tachella merged commit b591d4a into main Aug 5, 2025
9 checks passed
@matthieutrs matthieutrs deleted the ram branch August 18, 2025 08:22
jscanvic added a commit to jscanvic/deepinv that referenced this pull request Aug 21, 2025
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.

4 participants