georgeyiasemis commited on
Commit
f160e4a
·
verified ·
1 Parent(s): ef0ebfa

Fix inference YAMLs: pin single R+ACS; document training schedule + how to override

Browse files
README.md CHANGED
@@ -54,6 +54,29 @@ Each experiment is a pair (no iteration in the filename):
54
  | `vsharp_ads_2d_frame` | vSHARP | ADS 2D frame-specific |
55
  | `medl_ads_2d_frame` | MEDL | ADS 2D frame-specific |
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ## Usage
58
 
59
  ```bash
 
54
  | `vsharp_ads_2d_frame` | vSHARP | ADS 2D frame-specific |
55
  | `medl_ads_2d_frame` | MEDL | ADS 2D frame-specific |
56
 
57
+ ## Training protocol & inference masking
58
+
59
+ These models were trained on **CMRxRecon** cine with **mixed** discrete
60
+ accelerations (typically `[4.0327, 6, 8.2]`, or init2 variants such as
61
+ `[6, 8.2, 10.25]`) and ACS `center_fractions` of matching length (usually
62
+ `0.04`). Sampling scheme is config-specific (`FastMRIRandom`,
63
+ `FastMRIEquispaced`, or `Gaussian2D`).
64
+
65
+ Released YAMLs are inference-only and pin **exactly one** `accelerations`
66
+ value and **exactly one** `center_fractions` value (default: validation
67
+ `val-4x`). DIRECT’s `MaskFunc` randomly samples from lists — do **not** put
68
+ multi-R training lists into inference configs.
69
+
70
+ To evaluate another trained rate, edit `inference.dataset.transforms.masking`
71
+ and keep both lists length 1, e.g.:
72
+
73
+ ```yaml
74
+ masking:
75
+ name: FastMRIRandom
76
+ accelerations: [8.2]
77
+ center_fractions: [0.04]
78
+ ```
79
+
80
  ## Usage
81
 
82
  ```bash
medl_ads_1d.yaml CHANGED
@@ -60,6 +60,11 @@ inference:
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
- kspace_key: kspace_full
64
- compute_mask: false
 
 
 
 
 
65
  kspace_context: time
 
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
+ use_acs_as_mask: true
64
+ delete_acs_mask: false
65
+ padding_eps: 0.0
66
+ augmentation:
67
+ pad:
68
+ - 512
69
+ - 246
70
  kspace_context: time
medl_ads_1d_frame.yaml CHANGED
@@ -49,7 +49,7 @@ inference:
49
  masking:
50
  name: FastMRIRandom
51
  accelerations:
52
- - 8.2
53
  center_fractions:
54
  - 0.04
55
  cropping:
@@ -59,6 +59,11 @@ inference:
59
  normalization:
60
  scaling_key: acs_kspace
61
  scale_percentile: 0.995
62
- kspace_key: kspace_full
63
- compute_mask: false
 
 
 
 
 
64
  kspace_context: time
 
49
  masking:
50
  name: FastMRIRandom
51
  accelerations:
52
+ - 4.0327
53
  center_fractions:
54
  - 0.04
55
  cropping:
 
59
  normalization:
60
  scaling_key: acs_kspace
61
  scale_percentile: 0.995
62
+ use_acs_as_mask: true
63
+ delete_acs_mask: false
64
+ padding_eps: 0.0
65
+ augmentation:
66
+ pad:
67
+ - 512
68
+ - 246
69
  kspace_context: time
medl_ads_1d_frame_init2.yaml CHANGED
@@ -60,3 +60,11 @@ inference:
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
 
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
+ use_acs_as_mask: false
64
+ delete_acs_mask: false
65
+ dynamic_mask: true
66
+ augmentation:
67
+ pad:
68
+ - 512
69
+ - 246
70
+ kspace_context: time
medl_ads_1d_init2.yaml CHANGED
@@ -60,5 +60,11 @@ inference:
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
 
 
 
 
 
 
 
63
  kspace_context: time
64
- kspace_key: kspace_full
 
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
+ use_acs_as_mask: false
64
+ delete_acs_mask: false
65
+ padding_eps: 0.0
66
+ augmentation:
67
+ pad:
68
+ - 512
69
+ - 246
70
  kspace_context: time
 
medl_ads_2d.yaml CHANGED
@@ -60,3 +60,10 @@ inference:
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
+ use_acs_as_mask: true
64
+ delete_acs_mask: false
65
+ augmentation:
66
+ pad:
67
+ - 512
68
+ - 246
69
+ kspace_context: time
medl_ads_2d_frame.yaml CHANGED
@@ -41,6 +41,7 @@ physics:
41
  backward_operator: ifft2
42
  inference:
43
  batch_size: 1
 
44
  dataset:
45
  name: CMRxRecon
46
  transforms:
@@ -59,3 +60,10 @@ inference:
59
  normalization:
60
  scaling_key: acs_kspace
61
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
41
  backward_operator: ifft2
42
  inference:
43
  batch_size: 1
44
+ crop: header
45
  dataset:
46
  name: CMRxRecon
47
  transforms:
 
60
  normalization:
61
  scaling_key: acs_kspace
62
  scale_percentile: 0.995
63
+ use_acs_as_mask: true
64
+ delete_acs_mask: false
65
+ augmentation:
66
+ pad:
67
+ - 512
68
+ - 246
69
+ kspace_context: time
vsharp_ads_1d.yaml CHANGED
@@ -75,6 +75,11 @@ inference:
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
- kspace_key: kspace_full
79
- compute_mask: false
 
 
 
 
 
80
  kspace_context: time
 
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
+ use_acs_as_mask: true
79
+ delete_acs_mask: false
80
+ padding_eps: 0.0
81
+ augmentation:
82
+ pad:
83
+ - 512
84
+ - 246
85
  kspace_context: time
vsharp_ads_1d_frame.yaml CHANGED
@@ -64,7 +64,7 @@ inference:
64
  masking:
65
  name: FastMRIRandom
66
  accelerations:
67
- - 8.2
68
  center_fractions:
69
  - 0.04
70
  cropping:
@@ -74,6 +74,11 @@ inference:
74
  normalization:
75
  scaling_key: acs_kspace
76
  scale_percentile: 0.995
77
- kspace_key: kspace_full
78
- compute_mask: false
 
 
 
 
 
79
  kspace_context: time
 
64
  masking:
65
  name: FastMRIRandom
66
  accelerations:
67
+ - 4.0327
68
  center_fractions:
69
  - 0.04
70
  cropping:
 
74
  normalization:
75
  scaling_key: acs_kspace
76
  scale_percentile: 0.995
77
+ use_acs_as_mask: true
78
+ delete_acs_mask: false
79
+ padding_eps: 0.0
80
+ augmentation:
81
+ pad:
82
+ - 512
83
+ - 246
84
  kspace_context: time
vsharp_ads_1d_frame_init2.yaml CHANGED
@@ -75,3 +75,11 @@ inference:
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
 
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
+ use_acs_as_mask: false
79
+ delete_acs_mask: false
80
+ dynamic_mask: true
81
+ augmentation:
82
+ pad:
83
+ - 512
84
+ - 246
85
+ kspace_context: time
vsharp_ads_1d_init2.yaml CHANGED
@@ -75,5 +75,11 @@ inference:
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
 
 
 
 
 
 
 
78
  kspace_context: time
79
- kspace_key: kspace_full
 
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
+ use_acs_as_mask: false
79
+ delete_acs_mask: false
80
+ padding_eps: 0.0
81
+ augmentation:
82
+ pad:
83
+ - 512
84
+ - 246
85
  kspace_context: time
 
vsharp_ads_2d.yaml CHANGED
@@ -75,3 +75,10 @@ inference:
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
+ use_acs_as_mask: true
79
+ delete_acs_mask: false
80
+ augmentation:
81
+ pad:
82
+ - 512
83
+ - 246
84
+ kspace_context: time
vsharp_ads_2d_frame.yaml CHANGED
@@ -56,6 +56,7 @@ physics:
56
  backward_operator: ifft2
57
  inference:
58
  batch_size: 1
 
59
  dataset:
60
  name: CMRxRecon
61
  transforms:
@@ -74,3 +75,10 @@ inference:
74
  normalization:
75
  scaling_key: acs_kspace
76
  scale_percentile: 0.995
 
 
 
 
 
 
 
 
56
  backward_operator: ifft2
57
  inference:
58
  batch_size: 1
59
+ crop: header
60
  dataset:
61
  name: CMRxRecon
62
  transforms:
 
75
  normalization:
76
  scaling_key: acs_kspace
77
  scale_percentile: 0.995
78
+ use_acs_as_mask: true
79
+ delete_acs_mask: false
80
+ augmentation:
81
+ pad:
82
+ - 512
83
+ - 246
84
+ kspace_context: time