Upload 6 files
Browse files- .gitattributes +3 -0
- large/snraware_large_model.pts +3 -0
- large/snraware_large_model.yaml +215 -0
- medium/snraware_medium_model.pts +3 -0
- medium/snraware_medium_model.yaml +215 -0
- small/snraware_small_model.pts +3 -0
- small/snraware_small_model.yaml +207 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
large/snraware_large_model.pts filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
medium/snraware_medium_model.pts filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
small/snraware_small_model.pts filter=lfs diff=lfs merge=lfs -text
|
large/snraware_large_model.pts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:505e0614b4a86de9c6546c22eed3c546b99fc07966e1fed0401a3364cbeffdee
|
| 3 |
+
size 469738706
|
large/snraware_large_model.yaml
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
| 1 |
+
backbone:
|
| 2 |
+
num_of_channels: 64
|
| 3 |
+
block_str:
|
| 4 |
+
- T1L1G1T1L1G1T1L1G1T1L1G1
|
| 5 |
+
- T1L1G1T1L1G1T1L1G1T1L1G1
|
| 6 |
+
block:
|
| 7 |
+
cell:
|
| 8 |
+
attention_type: conv
|
| 9 |
+
mixer_type: conv
|
| 10 |
+
window_size:
|
| 11 |
+
- 8
|
| 12 |
+
- 8
|
| 13 |
+
- 16
|
| 14 |
+
patch_size:
|
| 15 |
+
- 4
|
| 16 |
+
- 4
|
| 17 |
+
- 2
|
| 18 |
+
window_sizing_method: mixed
|
| 19 |
+
n_head: 64
|
| 20 |
+
scale_ratio_in_mixer: 4.0
|
| 21 |
+
normalize_Q_K: true
|
| 22 |
+
cosine_att: true
|
| 23 |
+
att_with_relative_position_bias: true
|
| 24 |
+
att_dropout_p: 0.0
|
| 25 |
+
dropout_p: 0.1
|
| 26 |
+
att_with_output_proj: true
|
| 27 |
+
norm_mode: layer
|
| 28 |
+
activation_func: prelu
|
| 29 |
+
upsample_method: linear
|
| 30 |
+
with_timer: false
|
| 31 |
+
temporal:
|
| 32 |
+
_target_: ifm.model.config.TemporalAttentionConfig
|
| 33 |
+
stride_qk:
|
| 34 |
+
- 1
|
| 35 |
+
- 1
|
| 36 |
+
- 1
|
| 37 |
+
spatial_local:
|
| 38 |
+
_target_: ifm.model.config.SpatialLocalConfig
|
| 39 |
+
spatial_global:
|
| 40 |
+
_target_: ifm.model.config.SpatialGlobalConfig
|
| 41 |
+
shuffle_in_window: false
|
| 42 |
+
convoluation:
|
| 43 |
+
_target_: ifm.model.config.ConvolutionConfig
|
| 44 |
+
conv_type: conv3d
|
| 45 |
+
spatial_local_3d:
|
| 46 |
+
_target_: ifm.model.config.SpatialLocal3DConfig
|
| 47 |
+
spatial_global_3d:
|
| 48 |
+
_target_: ifm.model.config.SpatialGlobal3DConfig
|
| 49 |
+
shuffle_in_window: false
|
| 50 |
+
spatial_vit:
|
| 51 |
+
_target_: ifm.model.config.SpatialViTConfig
|
| 52 |
+
vit_3d:
|
| 53 |
+
_target_: ifm.model.config.ViT3DConfig
|
| 54 |
+
swin_3d:
|
| 55 |
+
_target_: ifm.model.config.Swin3DConfig
|
| 56 |
+
_target_: ifm.model.config.BlockConfig
|
| 57 |
+
cell_type: sequential
|
| 58 |
+
block_dense_connection: false
|
| 59 |
+
_target_: ifm.model.config.HRNetConfig
|
| 60 |
+
name: HRnet
|
| 61 |
+
num_resolution_levels: 2
|
| 62 |
+
optim:
|
| 63 |
+
lr: 1.0e-05
|
| 64 |
+
weight_decay: 0.0
|
| 65 |
+
name: sophia
|
| 66 |
+
beta1: 0.9
|
| 67 |
+
beta2: 0.999
|
| 68 |
+
eps: 1.0e-08
|
| 69 |
+
rho: 0.01
|
| 70 |
+
scheduler:
|
| 71 |
+
name: OneCycleLR
|
| 72 |
+
pct_start: 0.3
|
| 73 |
+
anneal_strategy: cos
|
| 74 |
+
div_factor: 25
|
| 75 |
+
dataset:
|
| 76 |
+
_target_: ifm.mri.denoising.data.MRIDenoisingDataset
|
| 77 |
+
cutout_shape:
|
| 78 |
+
- 64
|
| 79 |
+
- 64
|
| 80 |
+
- 16
|
| 81 |
+
repetition: 1
|
| 82 |
+
min_noise_level: 0.1
|
| 83 |
+
max_noise_level: 128.0
|
| 84 |
+
kspace_filter_sigma:
|
| 85 |
+
- 0.8
|
| 86 |
+
- 1.0
|
| 87 |
+
- 1.5
|
| 88 |
+
- 2.0
|
| 89 |
+
- 2.25
|
| 90 |
+
kspace_filter_sigma_T:
|
| 91 |
+
- 0.25
|
| 92 |
+
- 0.5
|
| 93 |
+
- 0.65
|
| 94 |
+
- 0.85
|
| 95 |
+
- 1.0
|
| 96 |
+
- 1.5
|
| 97 |
+
- 2.0
|
| 98 |
+
- 2.25
|
| 99 |
+
prob_apply_filter_T: 0.2
|
| 100 |
+
pf_filter_ratio:
|
| 101 |
+
- 1.0
|
| 102 |
+
- 0.875
|
| 103 |
+
- 0.75
|
| 104 |
+
- 0.625
|
| 105 |
+
phase_resolution_ratio:
|
| 106 |
+
- 1.0
|
| 107 |
+
- 0.75
|
| 108 |
+
- 0.65
|
| 109 |
+
- 0.55
|
| 110 |
+
readout_resolution_ratio:
|
| 111 |
+
- 1.0
|
| 112 |
+
- 0.75
|
| 113 |
+
- 0.65
|
| 114 |
+
- 0.55
|
| 115 |
+
only_white_noise: false
|
| 116 |
+
ignore_gmap: false
|
| 117 |
+
add_noise: true
|
| 118 |
+
add_salt_pepper: true
|
| 119 |
+
salt_pepper_amount: 0.4
|
| 120 |
+
salt_pepper_prob: 0.4
|
| 121 |
+
add_poisson: true
|
| 122 |
+
poisson_prob: 0.4
|
| 123 |
+
shuffle_along_3rd_dim: true
|
| 124 |
+
shuffle_along_3rd_dim_prob: 0.1
|
| 125 |
+
matrix_size_adjust_ratio:
|
| 126 |
+
- 0.5
|
| 127 |
+
- 0.75
|
| 128 |
+
- 1.0
|
| 129 |
+
- 1.25
|
| 130 |
+
- 1.5
|
| 131 |
+
matrix_size_adjust_prob: 0.5
|
| 132 |
+
resolution_reduction_prob: 0.0
|
| 133 |
+
single_frame_mode: true
|
| 134 |
+
single_frame_mode_prob: 0.1
|
| 135 |
+
dicom_mode: false
|
| 136 |
+
trainer:
|
| 137 |
+
_target_: lightning.Trainer
|
| 138 |
+
max_epochs: 320
|
| 139 |
+
precision: 32
|
| 140 |
+
devices: 8
|
| 141 |
+
accelerator: gpu
|
| 142 |
+
strategy: ddp
|
| 143 |
+
num_nodes: 2
|
| 144 |
+
gradient_clip_val: 1.0
|
| 145 |
+
accumulate_grad_batches: 1
|
| 146 |
+
log_every_n_steps: 200
|
| 147 |
+
enable_progress_bar: true
|
| 148 |
+
enable_model_summary: true
|
| 149 |
+
enable_checkpointing: true
|
| 150 |
+
check_val_every_n_epoch: 16
|
| 151 |
+
val_check_interval: 1.0
|
| 152 |
+
fast_dev_run: false
|
| 153 |
+
overfit_batches: 0.0
|
| 154 |
+
limit_train_batches: 1.0
|
| 155 |
+
limit_val_batches: 1.0
|
| 156 |
+
limit_test_batches: 1.0
|
| 157 |
+
deterministic: false
|
| 158 |
+
benchmark: true
|
| 159 |
+
profiler: null
|
| 160 |
+
logging:
|
| 161 |
+
project: ifm-mri-denoising
|
| 162 |
+
run_name: ifm-mri-denoising-large-no-epoch
|
| 163 |
+
output_dir: /data/ifm-mri-denoising/ifm-mri-denoising_20251004_025456/ifm-mri-denoising-large-no-epoch
|
| 164 |
+
wandb_entity: biomed-signal-processing
|
| 165 |
+
wandb_dir: /data/ifm-mri-denoising/ifm-mri-denoising_20251004_025456/ifm-mri-denoising-large-no-epoch/wandb
|
| 166 |
+
use_wandb: true
|
| 167 |
+
save_ckpt_every_n_epochs: 16
|
| 168 |
+
save_batches_to_output_dir: false
|
| 169 |
+
log_train_batches: 16
|
| 170 |
+
log_val_batches: 16
|
| 171 |
+
log_test_batches: 32
|
| 172 |
+
tyger:
|
| 173 |
+
mode: false
|
| 174 |
+
dop: 8
|
| 175 |
+
step_mode:
|
| 176 |
+
total_steps: 0
|
| 177 |
+
steps_to_report: 200
|
| 178 |
+
steps_to_timing: 1000
|
| 179 |
+
steps_to_validate: 10000
|
| 180 |
+
steps_to_save_ckpts: 20000
|
| 181 |
+
train_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/tra
|
| 182 |
+
test_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/test
|
| 183 |
+
seed: 3782770815
|
| 184 |
+
max_epochs: 320
|
| 185 |
+
batch_size: 2
|
| 186 |
+
num_workers: 8
|
| 187 |
+
prefetch_factor: 8
|
| 188 |
+
loss:
|
| 189 |
+
- mse
|
| 190 |
+
- perpendicular
|
| 191 |
+
- perceptual
|
| 192 |
+
- charbonnier
|
| 193 |
+
- gaussian3d
|
| 194 |
+
loss_weights:
|
| 195 |
+
- 1.0
|
| 196 |
+
- 1.0
|
| 197 |
+
- 1.0
|
| 198 |
+
- 1.0
|
| 199 |
+
- 1.0
|
| 200 |
+
val_data_portion: 0.02
|
| 201 |
+
overlap_for_inference:
|
| 202 |
+
- 16
|
| 203 |
+
- 16
|
| 204 |
+
- 8
|
| 205 |
+
device_mesh:
|
| 206 |
+
- 8
|
| 207 |
+
- 2
|
| 208 |
+
date: rank_0_544387_02-57-14-20251004
|
| 209 |
+
rank: 0
|
| 210 |
+
global_rank: 0
|
| 211 |
+
rank_str: "\e[34m\e[47mrank 0, global_rank 0 \e[0m"
|
| 212 |
+
device: cuda:0
|
| 213 |
+
yaml_file: null
|
| 214 |
+
log_file_name: null
|
| 215 |
+
ddp: true
|
medium/snraware_medium_model.pts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd504782790b55b4e15422e18c34cac548182ee6aecf0aec4c4fb770de1c3b39
|
| 3 |
+
size 235485912
|
medium/snraware_medium_model.yaml
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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size:
|
| 15 |
+
- 4
|
| 16 |
+
- 4
|
| 17 |
+
- 2
|
| 18 |
+
window_sizing_method: mixed
|
| 19 |
+
n_head: 64
|
| 20 |
+
scale_ratio_in_mixer: 4.0
|
| 21 |
+
normalize_Q_K: true
|
| 22 |
+
cosine_att: true
|
| 23 |
+
att_with_relative_position_bias: true
|
| 24 |
+
att_dropout_p: 0.0
|
| 25 |
+
dropout_p: 0.1
|
| 26 |
+
att_with_output_proj: true
|
| 27 |
+
norm_mode: layer
|
| 28 |
+
activation_func: prelu
|
| 29 |
+
upsample_method: linear
|
| 30 |
+
with_timer: false
|
| 31 |
+
temporal:
|
| 32 |
+
_target_: ifm.model.config.TemporalAttentionConfig
|
| 33 |
+
stride_qk:
|
| 34 |
+
- 1
|
| 35 |
+
- 1
|
| 36 |
+
- 1
|
| 37 |
+
spatial_local:
|
| 38 |
+
_target_: ifm.model.config.SpatialLocalConfig
|
| 39 |
+
spatial_global:
|
| 40 |
+
_target_: ifm.model.config.SpatialGlobalConfig
|
| 41 |
+
shuffle_in_window: false
|
| 42 |
+
convoluation:
|
| 43 |
+
_target_: ifm.model.config.ConvolutionConfig
|
| 44 |
+
conv_type: conv3d
|
| 45 |
+
spatial_local_3d:
|
| 46 |
+
_target_: ifm.model.config.SpatialLocal3DConfig
|
| 47 |
+
spatial_global_3d:
|
| 48 |
+
_target_: ifm.model.config.SpatialGlobal3DConfig
|
| 49 |
+
shuffle_in_window: false
|
| 50 |
+
spatial_vit:
|
| 51 |
+
_target_: ifm.model.config.SpatialViTConfig
|
| 52 |
+
vit_3d:
|
| 53 |
+
_target_: ifm.model.config.ViT3DConfig
|
| 54 |
+
swin_3d:
|
| 55 |
+
_target_: ifm.model.config.Swin3DConfig
|
| 56 |
+
_target_: ifm.model.config.BlockConfig
|
| 57 |
+
cell_type: sequential
|
| 58 |
+
block_dense_connection: false
|
| 59 |
+
_target_: ifm.model.config.HRNetConfig
|
| 60 |
+
name: HRnet
|
| 61 |
+
num_resolution_levels: 2
|
| 62 |
+
optim:
|
| 63 |
+
lr: 1.0e-05
|
| 64 |
+
weight_decay: 0.0
|
| 65 |
+
name: sophia
|
| 66 |
+
beta1: 0.9
|
| 67 |
+
beta2: 0.999
|
| 68 |
+
eps: 1.0e-08
|
| 69 |
+
rho: 0.01
|
| 70 |
+
scheduler:
|
| 71 |
+
name: OneCycleLR
|
| 72 |
+
pct_start: 0.3
|
| 73 |
+
anneal_strategy: cos
|
| 74 |
+
div_factor: 25
|
| 75 |
+
dataset:
|
| 76 |
+
_target_: ifm.mri.denoising.data.MRIDenoisingDataset
|
| 77 |
+
cutout_shape:
|
| 78 |
+
- 64
|
| 79 |
+
- 64
|
| 80 |
+
- 16
|
| 81 |
+
repetition: 1
|
| 82 |
+
min_noise_level: 0.1
|
| 83 |
+
max_noise_level: 128.0
|
| 84 |
+
kspace_filter_sigma:
|
| 85 |
+
- 0.8
|
| 86 |
+
- 1.0
|
| 87 |
+
- 1.5
|
| 88 |
+
- 2.0
|
| 89 |
+
- 2.25
|
| 90 |
+
kspace_filter_sigma_T:
|
| 91 |
+
- 0.25
|
| 92 |
+
- 0.5
|
| 93 |
+
- 0.65
|
| 94 |
+
- 0.85
|
| 95 |
+
- 1.0
|
| 96 |
+
- 1.5
|
| 97 |
+
- 2.0
|
| 98 |
+
- 2.25
|
| 99 |
+
prob_apply_filter_T: 0.2
|
| 100 |
+
pf_filter_ratio:
|
| 101 |
+
- 1.0
|
| 102 |
+
- 0.875
|
| 103 |
+
- 0.75
|
| 104 |
+
- 0.625
|
| 105 |
+
phase_resolution_ratio:
|
| 106 |
+
- 1.0
|
| 107 |
+
- 0.75
|
| 108 |
+
- 0.65
|
| 109 |
+
- 0.55
|
| 110 |
+
readout_resolution_ratio:
|
| 111 |
+
- 1.0
|
| 112 |
+
- 0.75
|
| 113 |
+
- 0.65
|
| 114 |
+
- 0.55
|
| 115 |
+
only_white_noise: false
|
| 116 |
+
ignore_gmap: false
|
| 117 |
+
add_noise: true
|
| 118 |
+
add_salt_pepper: true
|
| 119 |
+
salt_pepper_amount: 0.4
|
| 120 |
+
salt_pepper_prob: 0.4
|
| 121 |
+
add_poisson: true
|
| 122 |
+
poisson_prob: 0.4
|
| 123 |
+
shuffle_along_3rd_dim: true
|
| 124 |
+
shuffle_along_3rd_dim_prob: 0.1
|
| 125 |
+
matrix_size_adjust_ratio:
|
| 126 |
+
- 0.5
|
| 127 |
+
- 0.75
|
| 128 |
+
- 1.0
|
| 129 |
+
- 1.25
|
| 130 |
+
- 1.5
|
| 131 |
+
matrix_size_adjust_prob: 0.5
|
| 132 |
+
resolution_reduction_prob: 0.0
|
| 133 |
+
single_frame_mode: true
|
| 134 |
+
single_frame_mode_prob: 0.1
|
| 135 |
+
dicom_mode: false
|
| 136 |
+
trainer:
|
| 137 |
+
_target_: lightning.Trainer
|
| 138 |
+
max_epochs: 320
|
| 139 |
+
precision: 32
|
| 140 |
+
devices: 8
|
| 141 |
+
accelerator: gpu
|
| 142 |
+
strategy: ddp
|
| 143 |
+
num_nodes: 2
|
| 144 |
+
gradient_clip_val: 1.0
|
| 145 |
+
accumulate_grad_batches: 1
|
| 146 |
+
log_every_n_steps: 200
|
| 147 |
+
enable_progress_bar: true
|
| 148 |
+
enable_model_summary: true
|
| 149 |
+
enable_checkpointing: true
|
| 150 |
+
check_val_every_n_epoch: 16
|
| 151 |
+
val_check_interval: 1.0
|
| 152 |
+
fast_dev_run: false
|
| 153 |
+
overfit_batches: 0.0
|
| 154 |
+
limit_train_batches: 1.0
|
| 155 |
+
limit_val_batches: 1.0
|
| 156 |
+
limit_test_batches: 1.0
|
| 157 |
+
deterministic: false
|
| 158 |
+
benchmark: true
|
| 159 |
+
profiler: null
|
| 160 |
+
logging:
|
| 161 |
+
project: ifm-mri-denoising
|
| 162 |
+
run_name: ifm-mri-denoising-medium-no-epoch
|
| 163 |
+
output_dir: /data/ifm-mri-denoising/ifm-mri-denoising_20251004_025430/ifm-mri-denoising-medium-no-epoch
|
| 164 |
+
wandb_entity: biomed-signal-processing
|
| 165 |
+
wandb_dir: /data/ifm-mri-denoising/ifm-mri-denoising_20251004_025430/ifm-mri-denoising-medium-no-epoch/wandb
|
| 166 |
+
use_wandb: true
|
| 167 |
+
save_ckpt_every_n_epochs: 16
|
| 168 |
+
save_batches_to_output_dir: false
|
| 169 |
+
log_train_batches: 16
|
| 170 |
+
log_val_batches: 16
|
| 171 |
+
log_test_batches: 32
|
| 172 |
+
tyger:
|
| 173 |
+
mode: false
|
| 174 |
+
dop: 8
|
| 175 |
+
step_mode:
|
| 176 |
+
total_steps: 0
|
| 177 |
+
steps_to_report: 200
|
| 178 |
+
steps_to_timing: 1000
|
| 179 |
+
steps_to_validate: 10000
|
| 180 |
+
steps_to_save_ckpts: 20000
|
| 181 |
+
train_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/tra
|
| 182 |
+
test_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/test
|
| 183 |
+
seed: 3360635092
|
| 184 |
+
max_epochs: 320
|
| 185 |
+
batch_size: 2
|
| 186 |
+
num_workers: 8
|
| 187 |
+
prefetch_factor: 8
|
| 188 |
+
loss:
|
| 189 |
+
- mse
|
| 190 |
+
- perpendicular
|
| 191 |
+
- perceptual
|
| 192 |
+
- charbonnier
|
| 193 |
+
- gaussian3d
|
| 194 |
+
loss_weights:
|
| 195 |
+
- 1.0
|
| 196 |
+
- 1.0
|
| 197 |
+
- 1.0
|
| 198 |
+
- 1.0
|
| 199 |
+
- 1.0
|
| 200 |
+
val_data_portion: 0.02
|
| 201 |
+
overlap_for_inference:
|
| 202 |
+
- 16
|
| 203 |
+
- 16
|
| 204 |
+
- 8
|
| 205 |
+
device_mesh:
|
| 206 |
+
- 8
|
| 207 |
+
- 2
|
| 208 |
+
date: rank_0_955201_02-55-13-20251004
|
| 209 |
+
rank: 0
|
| 210 |
+
global_rank: 0
|
| 211 |
+
rank_str: "\e[34m\e[47mrank 0, global_rank 0 \e[0m"
|
| 212 |
+
device: cuda:0
|
| 213 |
+
yaml_file: null
|
| 214 |
+
log_file_name: null
|
| 215 |
+
ddp: true
|
small/snraware_small_model.pts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:672d9583e85ec9f418695fdf73180daed47b885bc9804291d9dc0ad02219ad91
|
| 3 |
+
size 118325006
|
small/snraware_small_model.yaml
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
backbone:
|
| 2 |
+
num_of_channels: 64
|
| 3 |
+
block_str:
|
| 4 |
+
- T1L1G1
|
| 5 |
+
- T1L1G1
|
| 6 |
+
block:
|
| 7 |
+
cell:
|
| 8 |
+
attention_type: conv
|
| 9 |
+
mixer_type: conv
|
| 10 |
+
window_size:
|
| 11 |
+
- 8
|
| 12 |
+
- 8
|
| 13 |
+
- 16
|
| 14 |
+
patch_size:
|
| 15 |
+
- 4
|
| 16 |
+
- 4
|
| 17 |
+
- 2
|
| 18 |
+
window_sizing_method: mixed
|
| 19 |
+
n_head: 64
|
| 20 |
+
scale_ratio_in_mixer: 4.0
|
| 21 |
+
normalize_Q_K: true
|
| 22 |
+
cosine_att: true
|
| 23 |
+
att_with_relative_position_bias: true
|
| 24 |
+
att_dropout_p: 0.0
|
| 25 |
+
dropout_p: 0.1
|
| 26 |
+
att_with_output_proj: true
|
| 27 |
+
norm_mode: layer
|
| 28 |
+
activation_func: prelu
|
| 29 |
+
upsample_method: linear
|
| 30 |
+
with_timer: false
|
| 31 |
+
temporal:
|
| 32 |
+
_target_: ifm.model.config.TemporalAttentionConfig
|
| 33 |
+
stride_qk:
|
| 34 |
+
- 1
|
| 35 |
+
- 1
|
| 36 |
+
- 1
|
| 37 |
+
spatial_local:
|
| 38 |
+
_target_: ifm.model.config.SpatialLocalConfig
|
| 39 |
+
spatial_global:
|
| 40 |
+
_target_: ifm.model.config.SpatialGlobalConfig
|
| 41 |
+
shuffle_in_window: false
|
| 42 |
+
convoluation:
|
| 43 |
+
_target_: ifm.model.config.ConvolutionConfig
|
| 44 |
+
conv_type: conv3d
|
| 45 |
+
spatial_local_3d:
|
| 46 |
+
_target_: ifm.model.config.SpatialLocal3DConfig
|
| 47 |
+
spatial_global_3d:
|
| 48 |
+
_target_: ifm.model.config.SpatialGlobal3DConfig
|
| 49 |
+
shuffle_in_window: false
|
| 50 |
+
spatial_vit:
|
| 51 |
+
_target_: ifm.model.config.SpatialViTConfig
|
| 52 |
+
vit_3d:
|
| 53 |
+
_target_: ifm.model.config.ViT3DConfig
|
| 54 |
+
swin_3d:
|
| 55 |
+
_target_: ifm.model.config.Swin3DConfig
|
| 56 |
+
_target_: ifm.model.config.BlockConfig
|
| 57 |
+
cell_type: sequential
|
| 58 |
+
block_dense_connection: false
|
| 59 |
+
_target_: ifm.model.config.HRNetConfig
|
| 60 |
+
name: HRnet
|
| 61 |
+
num_resolution_levels: 2
|
| 62 |
+
optim:
|
| 63 |
+
lr: 1.0e-05
|
| 64 |
+
weight_decay: 0.0
|
| 65 |
+
name: sophia
|
| 66 |
+
beta1: 0.9
|
| 67 |
+
beta2: 0.999
|
| 68 |
+
eps: 1.0e-08
|
| 69 |
+
rho: 0.01
|
| 70 |
+
scheduler:
|
| 71 |
+
name: OneCycleLR
|
| 72 |
+
pct_start: 0.3
|
| 73 |
+
anneal_strategy: cos
|
| 74 |
+
div_factor: 25
|
| 75 |
+
dataset:
|
| 76 |
+
_target_: ifm.mri.denoising.data.MRIDenoisingDataset
|
| 77 |
+
cutout_shape:
|
| 78 |
+
- 64
|
| 79 |
+
- 64
|
| 80 |
+
- 16
|
| 81 |
+
repetition: 1
|
| 82 |
+
min_noise_level: 0.1
|
| 83 |
+
max_noise_level: 128.0
|
| 84 |
+
kspace_filter_sigma:
|
| 85 |
+
- 0.8
|
| 86 |
+
- 1.0
|
| 87 |
+
- 1.5
|
| 88 |
+
- 2.0
|
| 89 |
+
- 2.25
|
| 90 |
+
kspace_filter_sigma_T:
|
| 91 |
+
- 0.25
|
| 92 |
+
- 0.5
|
| 93 |
+
- 0.65
|
| 94 |
+
- 0.85
|
| 95 |
+
- 1.0
|
| 96 |
+
- 1.5
|
| 97 |
+
- 2.0
|
| 98 |
+
- 2.25
|
| 99 |
+
prob_apply_filter_T: 0.2
|
| 100 |
+
pf_filter_ratio:
|
| 101 |
+
- 1.0
|
| 102 |
+
- 0.875
|
| 103 |
+
- 0.75
|
| 104 |
+
- 0.625
|
| 105 |
+
phase_resolution_ratio:
|
| 106 |
+
- 1.0
|
| 107 |
+
- 0.75
|
| 108 |
+
- 0.65
|
| 109 |
+
- 0.55
|
| 110 |
+
readout_resolution_ratio:
|
| 111 |
+
- 1.0
|
| 112 |
+
- 0.75
|
| 113 |
+
- 0.65
|
| 114 |
+
- 0.55
|
| 115 |
+
only_white_noise: false
|
| 116 |
+
ignore_gmap: false
|
| 117 |
+
add_noise: true
|
| 118 |
+
add_salt_pepper: true
|
| 119 |
+
salt_pepper_amount: 0.4
|
| 120 |
+
salt_pepper_prob: 0.4
|
| 121 |
+
add_poisson: true
|
| 122 |
+
poisson_prob: 0.4
|
| 123 |
+
shuffle_along_3rd_dim: true
|
| 124 |
+
shuffle_along_3rd_dim_prob: 0.1
|
| 125 |
+
matrix_size_adjust_ratio:
|
| 126 |
+
- 0.5
|
| 127 |
+
- 0.75
|
| 128 |
+
- 1.0
|
| 129 |
+
- 1.25
|
| 130 |
+
- 1.5
|
| 131 |
+
matrix_size_adjust_prob: 0.5
|
| 132 |
+
resolution_reduction_prob: 0.0
|
| 133 |
+
single_frame_mode: true
|
| 134 |
+
single_frame_mode_prob: 0.1
|
| 135 |
+
dicom_mode: false
|
| 136 |
+
trainer:
|
| 137 |
+
_target_: lightning.Trainer
|
| 138 |
+
max_epochs: 320
|
| 139 |
+
precision: 32
|
| 140 |
+
devices: 8
|
| 141 |
+
accelerator: gpu
|
| 142 |
+
strategy: ddp
|
| 143 |
+
num_nodes: 1
|
| 144 |
+
gradient_clip_val: 1.0
|
| 145 |
+
accumulate_grad_batches: 1
|
| 146 |
+
log_every_n_steps: 200
|
| 147 |
+
enable_progress_bar: true
|
| 148 |
+
enable_model_summary: true
|
| 149 |
+
enable_checkpointing: true
|
| 150 |
+
check_val_every_n_epoch: 16
|
| 151 |
+
val_check_interval: 1.0
|
| 152 |
+
fast_dev_run: false
|
| 153 |
+
overfit_batches: 0.0
|
| 154 |
+
limit_train_batches: 1.0
|
| 155 |
+
limit_val_batches: 1.0
|
| 156 |
+
limit_test_batches: 1.0
|
| 157 |
+
deterministic: false
|
| 158 |
+
benchmark: true
|
| 159 |
+
profiler: null
|
| 160 |
+
logging:
|
| 161 |
+
project: ifm-mri-denoising
|
| 162 |
+
run_name: ifm-mri-denoising-small-no-epoch
|
| 163 |
+
output_dir: /data1/inference_time/models/small
|
| 164 |
+
wandb_entity: biomed-signal-processing
|
| 165 |
+
wandb_dir: /data1/inference_time/models/small/wandb
|
| 166 |
+
use_wandb: true
|
| 167 |
+
save_ckpt_every_n_epochs: 16
|
| 168 |
+
save_batches_to_output_dir: false
|
| 169 |
+
log_train_batches: 16
|
| 170 |
+
log_val_batches: 16
|
| 171 |
+
log_test_batches: 32
|
| 172 |
+
tyger:
|
| 173 |
+
mode: false
|
| 174 |
+
dop: 8
|
| 175 |
+
step_mode:
|
| 176 |
+
total_steps: 0
|
| 177 |
+
steps_to_report: 200
|
| 178 |
+
steps_to_timing: 20000
|
| 179 |
+
steps_to_validate: 5000
|
| 180 |
+
steps_to_save_ckpts: 5000
|
| 181 |
+
train_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/tra
|
| 182 |
+
test_data_dir: /data/imaging-fm-projects/mri/denoising/data/whole/test
|
| 183 |
+
seed: null
|
| 184 |
+
max_epochs: 320
|
| 185 |
+
batch_size: 4
|
| 186 |
+
num_workers: 4
|
| 187 |
+
prefetch_factor: 8
|
| 188 |
+
loss:
|
| 189 |
+
- mse
|
| 190 |
+
- perpendicular
|
| 191 |
+
- perceptual
|
| 192 |
+
- charbonnier
|
| 193 |
+
- gaussian3d
|
| 194 |
+
loss_weights:
|
| 195 |
+
- 1.0
|
| 196 |
+
- 1.0
|
| 197 |
+
- 1.0
|
| 198 |
+
- 1.0
|
| 199 |
+
- 1.0
|
| 200 |
+
val_data_portion: 0.05
|
| 201 |
+
overlap_for_inference:
|
| 202 |
+
- 16
|
| 203 |
+
- 16
|
| 204 |
+
- 8
|
| 205 |
+
device_mesh:
|
| 206 |
+
- 8
|
| 207 |
+
- 2
|