diff options
author | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-03-06 12:46:09 +0000 |
---|---|---|
committer | Daniil Kazantsev <dkazanc@hotmail.com> | 2018-03-06 12:46:09 +0000 |
commit | 309d84445b5ec2980db7c79832958a6481343f17 (patch) | |
tree | 4370c24ba9890dc669690ec784bf40f89a5b2e32 /Wrappers/Python/demo | |
parent | 8d310478254f3cda63f3663729b416f425ad70b6 (diff) | |
download | regularization-309d84445b5ec2980db7c79832958a6481343f17.tar.gz regularization-309d84445b5ec2980db7c79832958a6481343f17.tar.bz2 regularization-309d84445b5ec2980db7c79832958a6481343f17.tar.xz regularization-309d84445b5ec2980db7c79832958a6481343f17.zip |
FGP/ROF updates
Diffstat (limited to 'Wrappers/Python/demo')
-rw-r--r-- | Wrappers/Python/demo/test_cpu_regularizers.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Wrappers/Python/demo/test_cpu_regularizers.py b/Wrappers/Python/demo/test_cpu_regularizers.py index f1eb3c3..7f08605 100644 --- a/Wrappers/Python/demo/test_cpu_regularizers.py +++ b/Wrappers/Python/demo/test_cpu_regularizers.py @@ -111,12 +111,10 @@ rms = rmse(Im, splitbregman) pars['rmse'] = rms txtstr = printParametersToString(pars) txtstr += "%s = %.3fs" % ('elapsed time',timeit.default_timer() - start_time) -print (txtstr) - +print (txtstr) a=fig.add_subplot(2,4,2) - # these are matplotlib.patch.Patch properties props = dict(boxstyle='round', facecolor='wheat', alpha=0.5) # place a text box in upper left in axes coords @@ -130,14 +128,14 @@ imgplot = plt.imshow(splitbregman,\ start_time = timeit.default_timer() pars = {'algorithm' : TV_FGP_CPU , \ - 'input' : u0, + 'input' : u0,\ 'regularization_parameter':0.07, \ 'number_of_iterations' :300 ,\ 'tolerance_constant':0.00001,\ 'methodTV': 0 ,\ 'nonneg': 0 ,\ - 'printingOut': 0 -} + 'printingOut': 0 + } out = TV_FGP_CPU (pars['input'], pars['regularization_parameter'], |