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

Add sampling masks (MagicMask, VariableDensityPoissonMask) #216

Merged
merged 43 commits into from
Jul 22, 2022

Conversation

georgeyiasemis
Copy link
Contributor

@georgeyiasemis georgeyiasemis commented Jun 19, 2022

Adding:

  • Variable density Poisson masking function
    • cython implementation
    • setup.py changes
  • Fastmri's Magic masking function
  • Additional tests
    Update:
  • torch.where output needed to be made contiguous to be inputted to fft, due to new torch version

@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #216 (e7120e2) into main (88eacc6) will decrease coverage by 0.46%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
- Coverage   81.97%   81.50%   -0.47%     
==========================================
  Files          72       72              
  Lines        5708     5418     -290     
==========================================
- Hits         4679     4416     -263     
+ Misses       1029     1002      -27     
Impacted Files Coverage Δ
direct/nn/crossdomain/crossdomain.py 90.16% <ø> (ø)
direct/nn/kikinet/kikinet.py 91.66% <ø> (ø)
direct/nn/lpd/lpd.py 90.36% <ø> (ø)
direct/common/subsample.py 84.63% <95.55%> (+13.78%) ⬆️
direct/data/h5_data.py 64.82% <0.00%> (-4.33%) ⬇️
direct/data/transforms.py 94.47% <0.00%> (-2.05%) ⬇️
direct/data/datasets.py 88.45% <0.00%> (-1.83%) ⬇️
direct/data/mri_transforms.py 98.92% <0.00%> (-0.41%) ⬇️
direct/utils/dataset.py 94.73% <0.00%> (+2.42%) ⬆️
direct/cli/utils.py 60.00% <0.00%> (+3.47%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88eacc6...e7120e2. Read the comment docs.

@github-actions github-actions bot added the ci label Jun 20, 2022
Copy link
Contributor Author

@georgeyiasemis georgeyiasemis left a comment

Choose a reason for hiding this comment

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

OK

@georgeyiasemis
Copy link
Contributor Author

@jonasteuwen The issue was fixed, so you can now review.

Copy link
Contributor Author

@georgeyiasemis georgeyiasemis left a comment

Choose a reason for hiding this comment

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

OK

Copy link
Contributor

@jonasteuwen jonasteuwen left a comment

Choose a reason for hiding this comment

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

Small comments

.github/workflows/tox.yml Outdated Show resolved Hide resolved
direct/common/_poisson.pyx Show resolved Hide resolved
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 19, 2022
Copy link
Contributor

@jonasteuwen jonasteuwen left a comment

Choose a reason for hiding this comment

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

LGTM

@georgeyiasemis georgeyiasemis merged commit de905b1 into main Jul 22, 2022
@jonasteuwen jonasteuwen deleted the add-sampling-masks branch July 22, 2022 14:49
georgeyiasemis added a commit that referenced this pull request Jul 31, 2022
…loses #185, #213)

Adding new sampling patterbs:

* Variable density Poisson masking function (cython implementation)
    * setup.py changes
* Fastmri's Magic masking function

Bug fix/update:
* `torch.where` output needed to be made contiguous to be inputted to fft, due to new torch version
georgeyiasemis added a commit that referenced this pull request Jul 31, 2022
…loses #185, #213)

Adding new sampling patterbs:

* Variable density Poisson masking function (cython implementation)
    * setup.py changes
* Fastmri's Magic masking function

Bug fix/update:
* `torch.where` output needed to be made contiguous to be inputted to fft, due to new torch version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci documentation Improvements or additions to documentation python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create MagicFastMRI sub-sampling pattern Create Variable Density Disk Poisson Sub-Sampling
2 participants