Skip to content

Commit

Permalink
feat: add scenario3
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Feb 9, 2024
1 parent ac25b25 commit 4e52517
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf/scenario2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ handlers:
n_samples: 25000
constant: false
directionz: center-out
backend: cufinufft
backend: stacked-cufinufft
n_jobs: 2

reconstructors:
Expand Down
72 changes: 72 additions & 0 deletions src/conf/scenario3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This files contains the configuration to reproduce the scenario 3 of the Simfmri paper.
# it requires a SPARKLING trajectory.

force_sim: false
cache_dir: ${oc.env:PWD}/cache
result_dir: ${oc.env:PWD}/results
ignore_patterns:
- "n_jobs"

sim_params:
sim_tr: 0.1
sim_time: 300
shape: [-1,-1,-1] # shape will be determined with the bbox and the brainweb phantom.
fov: [-1,-1,-1]
n_coils: 32
rng: 19980408
lazy: true
handlers:
phantom-brainweb:
subject_id: 5
bbox: [0.225,-0.07, 0.06, -0.055, null, null]
brainweb_folder: ${cache_dir}/brainweb
res: [1.0, 1.0, 0.943]
activation-block:
event_name: block_on
block_on: 20
block_off: 20
duration: 300
bold_strength: 0.02
noise-gaussian:
snr: 100
acquisition-generic-noncartesian:
shot_time_ms: 20
n_jobs: 4
traj_files: ${oc.env:PWD}/cache/trajectory/sparkling3d-48-2688x5.bin
smaps: true
backend: "cufinufft"

reconstructors:
sequential:
nufft_kwargs:
backend_name: cufinufft
density: cell_count
optimizer: pogm
wavelet: sym4
threshold: sure
max_iter_per_frame: 40
stats:
contrast_name: block_on


hydra:
job:
chdir: true

run:
dir: ${result_dir}/outputs/scenario2/${now:%Y-%m-%d_%H-%M-%S}
sweep:
dir: ${result_dir}/multirun/scenario2/${now:%Y-%m-%d_%H-%M-%S}
subdir: ${hydra.job.num}

callbacks:
gather_files:
_target_: hydra_callbacks.MultiRunGatherer
aggregator:
_partial_: true
_target_: snkf.cli.utils.aggregate_results

latest_run:
_target_: hydra_callbacks.LatestRunLink
run_base_dir: ${result_dir}/outputs
multirun_base_dir: ${result_dir}/multirun

0 comments on commit 4e52517

Please sign in to comment.