Skip to content

Commit

Permalink
Update nkibreast dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Apr 17, 2024
1 parent 39923d2 commit 42c37be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion direct/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def __getitem__(self, idx: int) -> dict[str, Any]:
# Get the k-space absolute value and create the mask.
kspace_abs = sample["kspace"].sum(0)
sample["sampling_mask"] = np.mean(np.abs(kspace_abs).sum(0)) < np.abs(kspace_abs).sum(0)
sample["sampling_mask"] = sample["sampling_mask"]

sample["kspace"] = sample["kspace"] * sample["sampling_mask"][None]

Expand Down

0 comments on commit 42c37be

Please sign in to comment.