This repository reproduces the experiments in Polynomial Preconditioners for Regularized Linear Inverse Problems.
Written by Siddharth Srinivasan. Please post an issue on the repository page if there is a problem.
Run the following commands in sequence to run the experiments.
conda update -n base -c defaults conda
make conda
conda activate ppcs
make pip
Troubleshooting:
- This repository was tested on an NVIDIA GPU. If running on a system without
the same, please remove the following packages from
environment.yaml
:cudnn
nccl
cupy
- Additionally, if not using an NVIDIA GPU, please set
devnum = -1
for each of thedemo_*.py
files. - When running
make pip
,git clone git@github.com:mlazaric/Chebyshev.git
will error if GitHub ssh keys are not set. Please replace that line in theMakefile
withgit clone https://github.com/mlazaric/Chebyshev.git
and runmake pip
again.
For most experiments, the corresponding data are located in the data
folder.
For the spiral3d_mrf
experiment, please run bash download_data.sh
in the
data/spiral3d_mrf
folder to download the data followed by
python3 combine.py
.
- All experiments are in the form
demo_*.py
. - An experiment can be performed by running, for example,
python3 demo_ccs.py
. - The respective Jupyter notebooks (as in,
plot_*.ipynb
) can be used to generate images and videos. - The Jupyter notebooks must be started after running Step 3 above.
- Additionally, LaTeX is required to render equations in the plots.
To uninstall, run the following commands:
conda activate
make clean