tristan-deep commited on
Commit
e179654
·
verified ·
1 Parent(s): a99916f

Sync configs from branch main (commit: e4848f6)

Browse files
Files changed (4) hide show
  1. README.md +41 -0
  2. config_carotid.yaml +67 -0
  3. config_echonet.yaml +48 -0
  4. config_echonetlvh.yaml +49 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ pretty_name: "zea configs"
4
+ tags:
5
+ - ultrasound
6
+ - configuration
7
+ - zea
8
+ ---
9
+
10
+ # zea Configuration Files
11
+
12
+ This repository contains configuration files for [zea](https://github.com/tue-bmd/zea), a toolbox for cognitive ultrasound imaging.
13
+
14
+ ## Synchronization
15
+
16
+ Configuration files are automatically synchronized from the main zea repository:
17
+
18
+ - **Main branch**: Latest config files from the `main` branch
19
+ - **Release tags**: Config files compatible with specific zea releases (e.g., `v0.0.1`, `v0.0.2`)
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ import zea
25
+
26
+ # Load a specific config file
27
+ config = zea.Config.from_hf("zeahub/configs", "config_picmus_rf.yaml", repo_type="dataset")
28
+
29
+ # Load from a specific release
30
+ config = zea.Config.from_hf("zeahub/configs", "config_camus.yaml", repo_type="dataset", revision="v0.0.2")
31
+ ```
32
+
33
+ ## Documentation
34
+
35
+ For detailed documentation and usage examples, visit:
36
+ - 📚 [zea.readthedocs.io](https://zea.readthedocs.io)
37
+ - 🔬 [Examples & Tutorials](https://zea.readthedocs.io/en/latest/examples.html)
38
+
39
+ ## Source
40
+
41
+ Source repository: [github.com/tue-bmd/zea](https://github.com/tue-bmd/zea)
config_carotid.yaml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # config_carotid.yaml - comments were autogenerated from PARAMETER_DESCRIPTIONS in zea/config/parameters.py
2
+ # The data section contains the parameters for the data.
3
+ data:
4
+ # The path of the folder to load data files from (relative to the user data
5
+ # root as set in users.yaml)
6
+ dataset_folder: hf://zeahub/zea-carotid-2023
7
+ # The path of the file to load when running the UI (either an absolute path or
8
+ # one relative to the dataset folder)
9
+ file_path: 2_cross_bifur_right_0000.hdf5
10
+ # true: use local data on this device, false: use data from NAS
11
+ local: false
12
+ # The form of data to load (raw_data, rf_data, iq_data, beamformed_data,
13
+ # envelope_data, image, image_sc)
14
+ dtype: raw_data
15
+ # The dynamic range for showing data in db [min, max]
16
+ dynamic_range: [-40, 0]
17
+ # The frame number to load when running the UI (null, int, 'all')
18
+ frame_no: all
19
+
20
+
21
+ # The scan section contains the parameters pertaining to the reconstruction.
22
+ scan:
23
+ # The number of transmits in a frame. Can be 'all' for all transmits, an
24
+ # integer for a specific number of transmits selected evenly from the
25
+ # transmits in the frame, or a list of integers for specific transmits to
26
+ # select from the frame.
27
+ selected_transmits: all # 149 is all or 11 for instance for reduce number of Tx
28
+ # The number of channels in the raw data (1 for rf data, 2 for iq data)
29
+ n_ch: 1
30
+ # The number of pixels in the beamforming grid in the x-direction
31
+ Nx: 400
32
+ # The number of pixels in the beamforming grid in the z-direction
33
+ Nz: 600
34
+
35
+ # This section contains the necessary parameters for building the pipeline.
36
+ pipeline:
37
+ # The operations to perform on the data. This is a list of dictionaries, where
38
+ # each dictionary contains the parameters for a single operation.
39
+ operations:
40
+ - name: demodulate
41
+ - name: "patched_grid"
42
+ params:
43
+ operations:
44
+ - name: tof_correction
45
+ params:
46
+ apply_phase_rotation: true
47
+ - name: pfield_weighting
48
+ - name: delay_and_sum
49
+ num_patches: 100
50
+ - name: envelope_detect
51
+ - name: normalize
52
+ - name: log_compress
53
+
54
+ # The device to run on ('cpu', 'gpu:0', 'gpu:1', ...)
55
+ device: auto:1
56
+
57
+ # Settings pertaining to plotting when running the UI (`zea --config
58
+ # <path-to-config.yaml>`)
59
+ plot:
60
+ # Set to true to save the plots to disk, false to only display them in the UI
61
+ save: true
62
+ # The plotting library to use (opencv, matplotlib)
63
+ plot_lib: opencv
64
+ # Set to true to run the UI in headless mode
65
+ headless: false
66
+ # The name for the plot
67
+ tag: carotid
config_echonet.yaml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # config_echonet.yaml - comments were autogenerated from PARAMETER_DESCRIPTIONS in zea/config/parameters.py
2
+ # The data section contains the parameters for the data.
3
+ data:
4
+ # The path of the folder to load data files from (relative to the user data
5
+ # root as set in users.yaml)
6
+ dataset_folder: echonet_v2025/train
7
+ # The path of the file to load when running the UI (either an absolute path or
8
+ # one relative to the dataset folder)
9
+ file_path: 0X1A8F20B8BF0B4B45.hdf5
10
+ # true: use local data on this device, false: use data from NAS
11
+ local: false
12
+ # The form of data to load (raw_data, rf_data, iq_data, beamformed_data,
13
+ # envelope_data, image, image_sc)
14
+ dtype: image
15
+ # The dynamic range for showing data in db [min, max]
16
+ dynamic_range: [-60, 0]
17
+ # The frame number to load when running the UI (null, int, 'all')
18
+ frame_no: all
19
+ # The type of data to convert to (raw_data, aligned_data, beamformed_data,
20
+ # envelope_data, image, image_sc)
21
+ to_dtype: image_sc
22
+
23
+ # The scan section contains the parameters pertaining to the reconstruction.
24
+ scan:
25
+ # The range of theta values in radians for scan conversion (null, [min, max]).
26
+ theta_range: [-0.78, 0.78] # [-45, 45] in rads
27
+ # The range of rho values in meters for scan conversion (null, [min, max]).
28
+ rho_range: [0, 1]
29
+ # Value to fill the image with outside the defined region (float, default
30
+ # 0.0).
31
+ fill_value: -60
32
+
33
+ # This section contains the necessary parameters for building the pipeline.
34
+ pipeline:
35
+ # The operations to perform on the data. This is a list of dictionaries, where
36
+ # each dictionary contains the parameters for a single operation.
37
+ operations:
38
+ - name: scan_convert
39
+ params:
40
+ jit_compile: false
41
+
42
+ # Settings pertaining to plotting when running the UI (`zea --config
43
+ # <path-to-config.yaml>`)
44
+ plot:
45
+ # Set to true to save the plots to disk, false to only display them in the UI
46
+ save: true
47
+ # The plotting library to use (opencv, matplotlib)
48
+ plot_lib: opencv
config_echonetlvh.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # config_echonetlvh.yaml - comments were autogenerated from PARAMETER_DESCRIPTIONS in zea/config/parameters.py
2
+ # The data section contains the parameters for the data.
3
+ data:
4
+ # The path of the folder to load data files from (relative to the user data
5
+ # root as set in users.yaml)
6
+ dataset_folder: echonetlvh_v2025/train
7
+ # The path of the file to load when running the UI (either an absolute path or
8
+ # one relative to the dataset folder)
9
+ file_path: 0X1017398D3C3F5FF9.hdf5
10
+ # true: use local data on this device, false: use data from NAS
11
+ local: false
12
+ # The form of data to load (raw_data, rf_data, iq_data, beamformed_data,
13
+ # envelope_data, image, image_sc)
14
+ dtype: image
15
+ # The dynamic range for showing data in db [min, max]
16
+ dynamic_range: [-60, 0]
17
+ # The frame number to load when running the UI (null, int, 'all')
18
+ frame_no: all
19
+ # The type of data to convert to (raw_data, aligned_data, beamformed_data,
20
+ # envelope_data, image, image_sc)
21
+ to_dtype: image_sc
22
+
23
+ # The scan section contains the parameters pertaining to the reconstruction.
24
+ scan:
25
+ # The range of theta values in radians for scan conversion (null, [min, max]).
26
+ theta_range: [-0.78, 0.78] # [-45, 45] in rads
27
+ # The range of rho values in meters for scan conversion (null, [min, max]).
28
+ rho_range: [0, 256]
29
+ # Value to fill the image with outside the defined region (float, default
30
+ # 0.0).
31
+ fill_value: -60
32
+
33
+ # This section contains the necessary parameters for building the pipeline.
34
+ pipeline:
35
+ # The operations to perform on the data. This is a list of dictionaries, where
36
+ # each dictionary contains the parameters for a single operation.
37
+ operations:
38
+ - name: scan_convert
39
+ params:
40
+ jit_compile: false
41
+ order: 2
42
+
43
+ # Settings pertaining to plotting when running the UI (`zea --config
44
+ # <path-to-config.yaml>`)
45
+ plot:
46
+ # Set to true to save the plots to disk, false to only display them in the UI
47
+ save: true
48
+ # The plotting library to use (opencv, matplotlib)
49
+ plot_lib: opencv