Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
acbfeef
working on prostate
melanie-dohmen-bayer May 29, 2026
dfd9952
run all with config and all datasets
melanie-dohmen-bayer Jun 1, 2026
58a2800
correct distortion names, remove debugging prints
melanie-dohmen-bayer Jun 1, 2026
2969f9d
correct coil dimensions and improve run_all script
melanie-dohmen-bayer Jun 1, 2026
26f7201
ignore downloaded checkpoints and additional personalized config files
melanie-dohmen-bayer Jun 1, 2026
b4d21a4
remove personal config file
melanie-dohmen-bayer Jun 1, 2026
501e522
add test to transform images to fastmri like k-space data
melanie-dohmen-bayer Jun 1, 2026
07d0da8
correct times for reconstructions, remove debugging print statements
melanie-dohmen-bayer Jun 1, 2026
0d34488
correct type of dataset - algorithm validation, centered FFT path for…
melanie-dohmen-bayer Jun 1, 2026
296dd8e
update tests for validating data + reconstruction pairs, update test …
melanie-dohmen-bayer Jun 1, 2026
98c1363
correct distortion names, allow num_samples = None, remove commented …
melanie-dohmen-bayer Jun 4, 2026
0e7e40a
add params to distortions, add Biasfield in image domain, add N4 bias…
melanie-dohmen-bayer Jun 8, 2026
c17c382
crop reconstructed images to reference image size, correct dimensions…
melanie-dohmen-bayer Jun 9, 2026
37ab442
add prostate to inference plot script, remove debugging prints
melanie-dohmen-bayer Jun 9, 2026
059baa8
add resolution distortions as separate loop to run_all, check, plot a…
melanie-dohmen-bayer Jul 2, 2026
b9fac40
add simple itk dependency
melanie-dohmen-bayer Jul 2, 2026
66ba6b9
replace sample_0 by sample name
melanie-dohmen-bayer Jul 8, 2026
ad7107e
missing correct params
melanie-dohmen-bayer Jul 8, 2026
affd9da
improve distortion plots
melanie-dohmen-bayer Jul 8, 2026
43bc1b2
test multiple distortion with different result paths
melanie-dohmen-bayer Jul 8, 2026
7413f7d
sort order of samples for reproducibility
melanie-dohmen-bayer Jul 8, 2026
70c4831
Merge branch 'experiments_run1' of github.com:MatthiasLen/ArtifactLab…
melanie-dohmen-bayer Jul 8, 2026
aefad4f
optionally do not overwrite existing results
melanie-dohmen-bayer Jul 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ data/
*_cache/
reports/
.python-version
*.ckpt
*.pt
manifest.json
# Ignore all yaml files in the examples folder except config.yaml as template:
examples/*.yaml
!examples/config.yaml
458 changes: 458 additions & 0 deletions examples/check_and_plot_results.py

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions examples/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
data:
"fastmri_knee": "/path/to/fastmri/singlecoil_val"
"oasis": "/path/to/oasis"
"fastmri_brain": "/path/to/fastmri/fastMRI_multicoil_brain_test"
"cmrxrecon": "/path/to/CMRxRecon"
"fastmri_prostate": "/path/to/fastmri/fastMRI_prostate_T2_IDS_001_020"

distortions:
- "BaseDistortion": {}
- "CartesianUndersamplingVariableDensity":
"keep_fraction": 0.75
"center_fraction": 0.125
- "CartesianUndersamplingUniformRandom":
"keep_fraction": 0.75
"center_fraction": 0.125
- "CartesianUndersamplingUniformRandomZeroACS":
"keep_fraction": 0.95
- "CartesianUndersamplingEquispaced":
"keep_fraction": 0.75
"center_fraction": 0.125
- "CartesianUndersamplingEquispacedZeroACS":
"keep_fraction": 0.95
- "PartialFourier":
"side": "high"
- "PhaseEncodeGhosting":
"line_period": 2,
"line_offset": 1,
#"phase_error_radians": torch.pi / 2,
"phase_error_degrees": 90.0
"corrupted_line_scale": 1.0
- "SegmentedTranslationMotion":
#"shift_x_pixels": [0.0, 20.0, 50.0, -50.0]
#"shift_y_pixels": [0.0, 10.0, -20.0, 20.0]
"shift_x_pixels": [2.0, 0.0, -3.0, -5.0]
"shift_y_pixels": [-1.0, 1.0, 2.0, 3.0]
- "SegmentedRotationalMotion":
#"angle_radians": [0.0, torch.pi / 20, -torch.pi / 24, torch.pi / 16]
"angle_degrees": [0.0, 2.0, -1.0, -3]
- "TranslationMotion":
#"shift_x_pixels": 60
#"shift_y_pixels": 10
"shift_x_pixels": 5
"shift_y_pixels": 2
- "RotationalMotion":
# angle_radians=torch.pi / 6
# angle_degrees: 60
"angle_degrees": 2.0
# - "OffCenterAnisotropicGaussianKspaceBiasField":
# "width_x_fraction": 0.2
# "width_y_fraction": 0.35
# "center_x_fraction": 0.15
# "center_y_fraction": -0.1
# "edge_gain": 0.3
- "OffCenterAnisotropicGaussianBiasField":
"width_x_fraction": 0.2
"width_y_fraction": 0.35
"center_x_fraction": 0.15
"center_y_fraction": -0.1
"edge_gain": 0.05
# - "GaussianKspaceBiasField":
# "width_fraction": 0.35
# "edge_gain": 0.4
- "GaussianBiasField":
"width_fraction": 0.15
"edge_gain": 0.05
- "AnisotropicLP":
"kx_radius_fraction": 1.0,
"ky_radius_fraction": 0.25,
- "HannTaperLP":
"radius_fraction": 0.35,
"transition_fraction": 0.4,
- "KaiserTaperLP":
"radius_fraction": 0.35,
"transition_fraction": 0.4,
"beta": 8.6,
- "GaussianNoise":
"sigma": 0.00001
- "IsotropicLP":
"radius_fraction": 0.1
- "RadialHighPassEmphasis":
"alpha": 0.4
reconstruction_algorithms:
- "zero-filled"
- "conjugate-gradient"
#- "ram"
#- "dip"
#- "tv-pgd"
#- "wavelet-fista"
#- "tv-fista"
#- "tv-pdhg"
- "unet-fastmri"
- "unet-oasis-acceleration4"
#- "unet-oasis-acceleration8"
#- "unet-oasis-acceleration10"
# additionally performs N4 Bias Field correction on reference images and BiasField-distorted and reconstructed ones
add_N4Correction: false
num_samples: 1
verbose: true
overwrite: false
results_dir: "/home/melanie.dohmen/ArtifactLab/reports/experiments_run1"
Loading
Loading