README.md

Fri, 03 May 2024 17:16:21 +0300

author
Neil Dizon <neil.dizon@helsinki.fi>
date
Fri, 03 May 2024 17:16:21 +0300
changeset 50
b413b7df8cd6
parent 40
2464329e356d
child 49
56cc16c66b39
permissions
-rw-r--r--

remove activated dual

0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
2 # Julia codes for predictive online optimisation for dynamic inverse imaging problems
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
4 This version of Julia codes contains the experiments in the 2024 manuscript _"Prediction techniques for dynamic imaging with online primal-dual methods"_ by Neil Dizon, Jyrki Jauhiainen, and Tuomo Valkonen. It is built on top of, and includes the experiments for the 2019 article _“[Predictive online optimisation with applications to optical flow](https://arxiv.org/abs/2002.03053)”_ by [Tuomo Valkonen](https://tuomov.iki.fi).
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 ## Prerequisites
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
8 These codes were written for Julia 1.9. The Julia package prequisites are from April 2024 when our experiments were run, and have not been updated to maintain the same environment we used to do the experiments in the manuscript. You may get Julia from [julialang.org](https://julialang.org/).
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9
8
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
10 ## Usage
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
11
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
12 Navigate your unix shell to the directory containing this `README.md` and then run:
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
13
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
14 $ julia --project=.
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
15
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
16 The first time doing this, to ensure all the dependencies are installed, run
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
17
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
18 $ ]instantiate
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
19
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
20 Afterwards in the Julia shell, type:
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
21
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
22 > using PredictPDPS
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
23
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
24 This may take a while as Julia precompiles the code.
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
25
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
26 Below we document how to run the experiments for each article. See the source code for more details.
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
27
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
28 To run the data generation multi-threadeadly parallel to the algorithm, set the `JULIA_NUM_THREADS` environment variable to a number larger than one.
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
29
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
30 ### Experiments for 2019 article
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
31
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
32 To generate all the experiments for _“Predictive online optimisation with applications to optical flow”_, run:
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
33
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
34 > batchrun_article()
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
35
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
36 To see the experiments running visually, and not save the results, run
0
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
37
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
38 > demo_known1()
a55e35d20336 Initialise independent repo
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
39
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
40 or any of `demo_XY()`, where `X`=`known`,`unknown` and `Y`=1,2,3.
8
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
41
33
e091766f556d Oops, year in README
Tuomo Valkonen <tuomov@iki.fi>
parents: 10
diff changeset
42 ### Experiments for 2024 article
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
43
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
44 To generate all the experiments for _"Prediction techniques for dynamic imaging with online primal-dual methods"_, run:
8
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
45
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
46 > batchrun_predictors()
40
2464329e356d README update
Tuomo Valkonen <tuomov@iki.fi>
parents: 33
diff changeset
47 > batchrun_shepplogan()
2464329e356d README update
Tuomo Valkonen <tuomov@iki.fi>
parents: 33
diff changeset
48 > batchrun_brainphantom()
8
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
49
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
50 Both will save the results under `img/`.
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
51
10
68fe515ea38f README fine-tuning
Tuomo Valkonen <tuomov@iki.fi>
parents: 9
diff changeset
52 To see the experiments running visually, and not save the results, run
8
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
53
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
54 > demo_denoising1()
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
55
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
56 or
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
57
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
58 > demo_pet1()
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
59
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
60 or any of `demo_denoisingZ()` for image stabilisation experiments and `demo_petZ()` for dynamic PET reconstruction where `Z=1` for Dual Scaling, `Z=2` for Greedy, `Z=3` for No Prediction, `Z=4` for Primal Only, `Z=5` for Proximal, and `Z=6` for Rotation predictors.
e4ad8f7ce671 Added PET and updated README
Neil Dizon <neil.dizon@helsinki.fi>
parents: 0
diff changeset
61

mercurial