conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=11.8 -c pytorch -c nvidia
cd freqencoder
pip install .
cd ../gridencoder
pip install .
cd ../shencoder
pip install .
pip install -r requirements.txtPlease download the dataset from here, which includes simulation data, datasets published by Stanford University, and data collected by ourselves.
python run.py --config <path to config>Example:
python run.py --config configs/cudaGL/bike_nonconfocal_cdt_shift_32_0.015.txt # Simulation data motorcycle
python run.py --config configs/cdt_real/S_cdt.txt # Letter 'S' in Stanford dataset
python run.py --config configs/iqi_real/umbrella_2_guijiao_1.0_cdt_32_0.0192_2023_3_30.txt # Umbrella in our datasetParameters are modified in the config file.
Explanation:
-
expnameexperiment name -
basedirwhere to store ckpts and logs -
datadirinput data directory -
dataset_typeoptions: nlos / genrated -
neglect_zero_binswhen True, those zero histogram bins - will be neglected and not used in optimization. The - threshold is computed automatically to ensure that n eglected -bins are zero -
neglect_former_numsnums of former values ignored -
neglect_back_numsnums of back values ignored -
encodingencoding type for position -
encoding_direncoding type for direction -
num_layersthe number of layers for sigma -
hidden_dimthe dimmension of hidden layer for sigma net -
geo_feat_dimthe dimmension of geometric feature -
num_layers_colorthe number of layers for color -
hidden_dim_colorthe dimmension of hidden layer for color - net -
boundboundry of the scene -
resothe result resolution -
trimThe length of the value is discarded at the backward - loss step -
snrSNR in wiener filter -
loss_typeuse only forward, backward only, or both -
N_itersnum of training iters -
lratelearning rate -
lr_decay_ratelearning rate decay rate -
sampling_points_numsnumber of sampling points in one direction, so the number of all sampling points is the square of this value -
nrefractive index -
mu_aabsorption coefficient -
mu_sscattering coefficient -
zdthickness of the scattering medium -
n_dipolesnumber of dipoles
We have intensively borrow codes from the following repositories. Many thanks to the authors for sharing their codes.
- [torch-ngp] https://github.com/ashawkey/torch-ngp
- [NeTF] https://github.com/SCI2020/NeTF
- [confocal-diffuse-tomography] https://github.com/computational-imaging/confocal-diffuse-tomography