From cf0efd0a729be773cb6ae9a0f3700267447e2674 Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Tue, 30 Apr 2019 14:52:38 +0100 Subject: minor fix demos --- Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py | 2 +- Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py | 2 +- Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py | 2 +- Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py b/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py index 26578bb..49d4db6 100644 --- a/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py +++ b/Wrappers/Python/wip/Demos/PDHG_TGV_Tomo2D.py @@ -51,7 +51,7 @@ detectors = N angles = np.linspace(0, np.pi, N, dtype=np.float32) ag = AcquisitionGeometry('parallel','2D',angles, detectors) -Aop = AstraProjectorSimple(ig, ag, 'cpu') +Aop = AstraProjectorSimple(ig, ag, 'gpu') sin = Aop.direct(data) # Create noisy data. Apply Poisson noise diff --git a/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py b/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py index 58978ae..4903c44 100644 --- a/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py +++ b/Wrappers/Python/wip/Demos/PDHG_TV_Denoising_Poisson.py @@ -48,7 +48,7 @@ noisy_data = ImageData(n1) # Regularisation Parameter alpha = 2 -method = '0' +method = '1' if method == '0': diff --git a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py index 3f275e2..041d4ee 100644 --- a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py +++ b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Denoising.py @@ -47,7 +47,7 @@ noisy_data = ImageData(n1) # Regularisation Parameter alpha = 4 -method = '1' +method = '0' if method == '0': diff --git a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py index 5c03362..f17c4fe 100644 --- a/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py +++ b/Wrappers/Python/wip/Demos/PDHG_Tikhonov_Tomo2D.py @@ -43,7 +43,7 @@ detectors = N angles = np.linspace(0, np.pi, N, dtype=np.float32) ag = AcquisitionGeometry('parallel','2D',angles, detectors) -Aop = AstraProjectorSimple(ig, ag, 'cpu') +Aop = AstraProjectorSimple(ig, ag, 'gpu') sin = Aop.direct(data) # Create noisy data. Apply Gaussian noise -- cgit v1.2.3