Downloads · 30 days
0
laughingrice/dl_us_sos_inversion
dl_us_sos_inversion is a machine learning model from laughingrice. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains the code and models for the following papers:
Downloads · 30 days
0
Access
Public
Updated Oct 21, 2023
Repo size
52.3 MB
Likes
0
Public
Click a slice to open those files.
.pt52.3 MB · 100%
From the Hugging Face model README
This repository contains the code and models for the following papers:
This repository contain the network code and models for the algorithms and results contained in the paper.
The code was tested under python 3.9. The anaconda environment is defined in environment.yml (setup environment with the command conda env create -f environment.yml)
The dataset used is available on huggingface at https://huggingface.co/datasets/laughingrice/Ultrasound_planewave_sos_inversion
Variables in the files are [sample, layer, x/channel, y/sample] order
alpha_coeff -- Alpha coefficient used for simulations, full resolutionc0 -- Speed-of-sound used for simulations, full resolutiondata -- Channel data (first 2048 samples, 64 active channels, first layer with flat plane wave, to
match existing physical hardware were used for the results in the paper)dx -- spatial dx value of c0 and alpha_coeff -- temporal sampling frequency of channel data (40MHz)Model files appearing under the models directory for results presented in the paper with teh matching
execution parameters are as follows:
tbme_sos.pt -- network weights for the network presented in [1]
python . --test_files data/supplamentary_sample.mat --test_fname tbme_sos.h5 --load_ver models/tbme_sos.pt --net_type tbmeembc_sos.pt -- network weights for the network presented in [2]
python . --test_files data/supplamentary_sample.mat --test_fname embc_sos.h5 --load_ver models/embc_sos.pt --net_type embctbme2_sos.pt -- network weights for the network presented in [3]
python . --test_files data/supplamentary_sample.mat --test_fname tbme2_sos.h5 --load_ver models/tbme2_sos.pttbme2_sos_rand_gain.pt -- [3] trained to recover the speed-of-sound map with random gain profile and scaling
python . --test_files data/supplamentary_sample.mat --test_fname tbme2_sos_gain.h5 --load_ver models/tbme2_sos_rand_gain.pttbme2_attn.pt -- [3] trained to recover the attenuation coefficient
python . --test_files data/supplamentary_sample.mat --test_fname tbme2_attn.h5 --load_ver models/tbme2_attn.pt --label_vars alpha_coefftbme2_sos_attn.pt -- [3] trained to recover both the speed-of-sound map and attenuation coefficient
python . --test_files data/supplamentary_sample.mat --test_fname tbme2_sos_attn.h5 --load_ver models/tbme2_sos_attn.pt --label_vars c0 alpha_coefftbme2_phase_sos.pt -- [3] trained to recover the speed-of-sound map using the IQ phase component
python . --test_files data/supplamentary_sample.mat --test_fname tbme2_phase_sos.h5 --load_ver models/tbme2_phase_sos.pt --phase_inv 1