changeset 108:b14e1f6ee4be ver_1.1

Merge
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 18 May 2011 11:50:28 +0100
parents dab78a3598b6 (current diff) 298fa66fe344 (diff)
children 9793ce00d729
files examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLA.m
diffstat 5 files changed, 173 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bugs.m	Wed May 18 11:50:28 2011 +0100
@@ -0,0 +1,166 @@
+% MDP: File "COPYING" is not included in the distribution?
+
+% I encountered an error while running SMALL_solver_test_Audio :
+
+%??? Error using ==>
+%problems\private\completeOps>@(x)reshape(data.B(x,1),data.signalSize)
+%Too many input arguments.
+%Error in ==> SMALL_playAudio at 17
+%SMALL.solver.reconstructed  = SMALL.Problem.reconstruct(SMALL.solver.solution);
+%Error in ==> SMALL_solver_test_Audio at 96
+%SMALL_playAudio(SMALL);
+ 
+
+% version of Matlab used: 7.9.0.529  - 64 bits
+
+
+
+Bugs by Raja Giryes:
+Using the tollbox on windows with Matlab R2010b:
+bug1:
+running SMALL_solver_test_Audio.m 
+I get:
+Starting solver SMALL_cgp... 
+Solver SMALL_cgp finished task in 251.208410 seconds (cpu time). 
+Solver SMALL_cgp finished task in 159.905633 seconds (tic-toc time). 
+
+Starting solver SolveBP... 
+??? Error using ==> eval
+Undefined function or method 'SolveBP' for input arguments of type
+'function_handle'.
+
+Error in ==> SMALL_solve at 46
+    y = eval([solver.name,'(SparseLab_A, b, n,',solver.param,');']);
+
+Error in ==> SMALL_solver_test_Audio at 93
+SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i));
+
+running SMALL_solver_test.m
+I get:
+Starting solver SMALL_cgp... 
+Solver SMALL_cgp finished task in 2.839218 seconds (cpu time). 
+Solver SMALL_cgp finished task in 2.821443 seconds (tic-toc time). 
+
+Starting solver SolveOMP... 
+??? Error using ==> eval
+Undefined function or method 'SolveOMP' for input arguments of type
+'function_handle'.
+
+Error in ==> SMALL_solve at 46
+    y = eval([solver.name,'(SparseLab_A, b, n,',solver.param,');']);
+
+Error in ==> SMALL_solver_test at 113
+SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i));
+
+
+Bug report from Mehrdad Yaghoobi:
+1. The rice mdwt crashed on my matlab session runing on linux 64!!!
+2. problem with hg merge using EasyMercurial.
+
+
+
+
+% MDP: Files "my_dummy_solver.m" etc should include the boiler plate function
+% header etc.
+
+
+
+
+%%%%%%%%%%%%%%%%%
+% bug by Valentin
+%%%%%%%%%%%%%%%%%
+% In SMALLboxSetup.m
+% On Windows XP, 32 bits, Matlab R2010a
+% 
+% > SMALLboxSetup
+% ...
+% Compiling the Rice Wavelet Toolbox MEX interfaces...Error mdwt.c: 39  undeclared identifier `intptr_t' 
+% Warning mdwt.c: 39  Statement has no effect 
+% Error mdwt.c: 39  syntax error; found `m' expecting `;' 
+% Error mdwt.c: 39  undeclared identifier `m' 
+% Error mdwt.c: 39  undeclared identifier `n' 
+% Error mdwt.c: 39  undeclared identifier `h_col' 
+% Error mdwt.c: 39  undeclared identifier `h_row' 
+% Error mdwt.c: 39  undeclared identifier `lh' 
+% Error mdwt.c: 39  undeclared identifier `L' 
+% Error mdwt.c: 39  undeclared identifier `i' 
+% Error mdwt.c: 39  undeclared identifier `po2' 
+% Error mdwt.c: 39  undeclared identifier `j' 
+% Warning mdwt.c: 39  Statement has no effect 
+% Error mdwt.c: 40  illegal statement termination 
+% Error mdwt.c: 40  skipping `double' 
+% Error mdwt.c: 40  undeclared identifier `mtest' 
+% Error mdwt.c: 40  undeclared identifier `ntest' 
+% Warning mdwt.c: 40  Statement has no effect 
+% Error mdwt.c: 62  operands of * have illegal types `int' and `pointer to double' 
+% Warning mdwt.c: 39   possible usage of po2 before definition 
+% Warning mdwt.c: 39   possible usage of intptr_t before definition 
+% Warning mdwt.c: 38  local `pointer to double Lf' is not referenced 
+% Error mdwt.c: 106  missing parameter type 
+% Error mdwt.c: 106  syntax error; found `m' expecting `)' 
+% Error mdwt.c: 106  skipping `m' `,' `intptr_t' `n' `,' 
+% Error mdwt.c: 106  syntax error; found `double' expecting `{' 
+% Error mdwt.c: 106  too many errors 
+%  
+%   C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Compile of 'mdwt.c' failed. 
+%  
+% Warning: Could not compile Rice Wavelet Toolbox MEX interfaces.\n 
+% > In SMALLboxSetup at 365
+% 
+%  ******************************************************************
+% 
+%  Initialising SMALLbox Examples Setup
+%  ******************************************************************
+% 
+%  SMALLbox Installation Complete!
+% 
+%  For more information on the installed toolboxes see
+% 
+%  Sparco: http://www.cs.ubc.ca/labs/scl/sparco/
+% 
+%  SPGL1: http://www.cs.ubc.ca/labs/spgl1/?n=HomePage
+% 
+%  SparseLab: http://sparselab.stanford.edu/   (PLEASE REGISTER SPARSELAB!)
+% 
+%  Sparsify: http://www.see.ed.ac.uk/~tblumens/sparsify/sparsify.html
+% 
+%  GPSR: http://www.lx.it.pt/~mtf/GPSR/
+% 
+%  OMPbox and KSVDBox: http://www.cs.technion.ac.il/~ronrubin/
+% 
+% 
+%  Would you like to run a demo: ([y]/n)? 
+% 
+%  1 to run SMALL_solver_test 
+%  2 to run Dictionary Learning for Image Denoising demo 
+%  q to quit: 1
+% 
+%  Running SMALL_solver_test problem
+% 
+% Example test of SMALL solvers against their counterparts on Sparco problems.
+% 
+% ??? Undefined function or method 'mdwt' for input arguments of type
+% 'double'.
+% 
+% Error in ==> opWavelet>opWavelet_intrnl at 55
+%       [y,l] = mdwt(reshape(x,[m,n]), h, levels);
+% 
+% Error in ==>
+% opWavelet>@(x,mode)opWavelet_intrnl(m,n,family,filter,levels,type,h,x,mode)
+% at 37
+% op = @(x,mode)
+% opWavelet_intrnl(m,n,family,filter,levels,type,h,x,mode);
+% 
+% Error in ==> prob006 at 67
+% data.x0              = data.op.Daubechies(data.signal,2);
+% 
+% Error in ==> generateProblem at 101
+% [data] = eval(sprintf('prob%03d(varargin{:});',index));
+% 
+% Error in ==> SMALL_solver_test at 61
+% SMALL.Problem = generateProblem(6, 'P', 6, 'm', 270,'n',1024,
+% 'show');
+% 
+% Error in ==> SMALLboxSetup at 416
+%     SMALL_solver_test;
+%     
\ No newline at end of file
--- a/examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLA.m	Wed May 18 11:50:12 2011 +0100
+++ b/examples/Image Denoising/SMALL_ImgDenoise_DL_test_KSVDvsRLSDLA.m	Wed May 18 11:50:28 2011 +0100
@@ -1,4 +1,4 @@
-%% DICTIONARY LEARNING FOR IMAGE DENOISING
+ %% DICTIONARY LEARNING FOR IMAGE DENOISING
 %   This file contains an example of how SMALLbox can be used to test different
 %   dictionary learning techniques in Image Denoising problem.
 %   It calls generateImageDenoiseProblem that will let you to choose image,
@@ -206,7 +206,7 @@
     'dictsize', SMALL.Problem.p,...
     'forgettingMode', 'FIX',...
     'forgettingFactor', lambda,...
-    'show_dict', 500);
+    'show_dict', 1000);
 
 
 SMALL.DL(3) = SMALL_learn(SMALL.Problem, SMALL.DL(3));
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test.m	Wed May 18 11:50:28 2011 +0100
@@ -0,0 +1,1 @@
+test
\ No newline at end of file
--- a/util/SMALL_learn.m	Wed May 18 11:50:12 2011 +0100
+++ b/util/SMALL_learn.m	Wed May 18 11:50:28 2011 +0100
@@ -95,8 +95,8 @@
 %   Dictionary Learning time
 tElapsed=toc(tStart);
   DL.time = cputime - start;
-  fprintf('\n%s finished task in %2f seconds. \n', DL.name, DL.time);
-  fprintf('\n%s finished task in %2f seconds. \n', DL.name, tElapsed);
+  fprintf('\n%s finished task in %2f seconds (cpu time). \n', DL.name, DL.time);
+  fprintf('\n%s finished task in %2f seconds (tic-toc time). \n', DL.name, tElapsed);
 DL.time=tElapsed;
 %   If dictionary is given as a sparse matrix change it to full  
 
--- a/util/SMALL_solve.m	Wed May 18 11:50:12 2011 +0100
+++ b/util/SMALL_solve.m	Wed May 18 11:50:28 2011 +0100
@@ -93,8 +93,8 @@
 %   Sparse representation time
 tElapsed=toc(tStart);
 solver.time = cputime - start;
-fprintf('Solver %s finished task in %2f seconds. \n', solver.name, solver.time);
-fprintf('Solver %s finished task in %2f seconds. \n', solver.name, tElapsed);
+fprintf('Solver %s finished task in %2f seconds (cpu time). \n', solver.name, solver.time);
+fprintf('Solver %s finished task in %2f seconds (tic-toc time). \n', solver.name, tElapsed);
 solver.time=tElapsed;
 % geting around out of memory problem when converting big matrix from
 % sparse to full...