-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Wavelet Operator #294
Add Wavelet Operator #294
Conversation
I get the following error: worker 'gw3' crashed while running 'tests/data/test_movedatamixin.py::test_movedatamixin_convert[True-dtype1-single]' As I did not change anything there, I was wondering if @fzimmermann89 has any ideas what this could be about? |
Out of curiosity: pytorch wavelet toolbox changed some type hints as we suggested (on their current GitHub version) I don't remember why we cared - does this help? Or will this now cause issues with the current waveletop code? |
As far as I can see this fits to your typehinting in the code so it should not be a problem. |
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.
some comments
For testing the implementation we used some real scanner data already. Should we create an example script / notebook from our test case and directly include it in this PR? |
The example we had during the hackathon was already for a FISTA + Wavelet reconstruction. I would therefore suggest to add this example to the FISTA PR. |
@CodiumAI-Agent /review
|
PR Reviewer Guide 🔍(Review updated until commit 058e475)
|
Persistent review updated to latest commit 058e475 |
|
||
# Switch off formatter to avoid having only one wavelet type per line | ||
# fmt: off | ||
WaveletType = Literal[ |
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.
Consider using a dictionary or a more structured data type for managing wavelet types rather than a long list of literals. This could improve readability and maintainability. [important]
Co-authored-by: ckolbPTB <[email protected]> Co-authored-by: Felix F Zimmermann <[email protected]>
Wavelet Operator for wavelet-reco
For wavelet transforms we use The PyTorch Wavelet Toolbox (ptwt), which extends PyWavelets (pywt). It provides GPU and gradient support via a PyTorch backend.