-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.bash
executable file
·23 lines (19 loc) · 1.05 KB
/
setup.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Script to set up python environment to run the confocal diffuse tomography code
# note that this requires a system installaton of anaconda or miniconda
# if you don't have this, follow the instructions here for miniconda
# https://docs.conda.io/en/latest/miniconda.html
# create a new anaconda environment for this project
conda create -n cdt python=3.6
eval "$(conda shell.bash hook)" # this is just required to activate an anaconda env in a bash script
conda activate cdt
pip install -r requirements.txt
# run the reconstructions on captured data and display each for 2 sec.
python main.py --scene letter_s --pause 2 # reconstruct scene from Fig. 2
python main.py --scene mannequin --pause 2 # reconstruct scene from Fig. 3
python main.py --scene letters_ut --pause 2 # reconstruct scene from Fig. 3
python main.py --scene letter_t --pause 2 # reconstruct scene from Fig. 3
python main.py --scene cones --pause 2 # reconstruct scene from Fig. 3
# optionally remove environment when finished with code
# conda deactivate
# conda env remove -n cdt