50 dataset adaptor to make oasis unet run on fast mri dataset#51
Open
MatthiasLen wants to merge 7 commits into
Open
50 dataset adaptor to make oasis unet run on fast mri dataset#51MatthiasLen wants to merge 7 commits into
MatthiasLen wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds an adapter and inference selection layer so the packaged OASIS single-coil U-Net can be run on FastMRI measurements by converting FastMRI k-space into OASIS’s centered FFT convention, and updates the example CLI and tests accordingly.
Changes:
- Introduces FastMRI→OASIS k-space conversion helpers and exposes them via
mri_recon.utils. - Adds a centralized reconstructor-selection module (
mri_recon.reconstruction.inference) with explicit algorithm names and dataset/algorithm compatibility checks. - Refactors the FastMRI inference plotting example to support explicit U-Net variants and the centered-OASIS path on FastMRI.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_utils_io.py |
Adds tests verifying FastMRI→image and FastMRI→OASIS-kspace helpers match the native adjoint/centered path. |
tests/test_reconstructions.py |
Switches tests to use choose_reconstructor/compatibility helpers and adds coverage for algorithm selection logic. |
README.md |
Updates CLI examples to use explicit algorithm names (e.g., unet-fastmri, unet-oasis-acceleration8). |
mri_recon/utils/oasis_adapter.py |
Adds conversion helpers to map FastMRI measurements into the OASIS centered FFT convention. |
mri_recon/utils/__init__.py |
Re-exports the new adapter helpers as part of the public utils API. |
mri_recon/reconstruction/inference.py |
New module defining explicit algorithm IDs, compatibility validation, and reconstructor selection. |
mri_recon/reconstruction/__init__.py |
Exposes the new inference utilities at the package level. |
examples/plot.py |
New shared plotting helper module for k-space visualization. |
examples/fastmri_inference_plot.py |
Refactors the example to use explicit algorithm selection and to adapt FastMRI measurements for OASIS-centered inference. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ataset' of https://github.com/MatthiasLen/mri_recon into 50-dataset-adaptor-to-make-oasis-unet-run-on-fast-mri-dataset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@ydu0117 as discussed: the dataset adaptor to allow OASIS model execution on FastMRI