Why do I receive this error message?
古いコメントを表示
Hello.
I tried to run the code via this link https://github.com/yifanw90/Zeyde_superes and I get errors below, can anyone help resolve this.
% Training [0 x 1000] dictionary on 0 vectors using K-SVD
Error using ksvd (line 386)
Number of training signals is smaller than number of atoms to train
Error in learn_dict (line 49)
[conf.dict_lores, gamma] = ksvd(ksvd_conf); % , '');
Error in Example (line 25)
conf = learn_dict(conf, load_images(...
>>
18 件のコメント
Walter Roberson
2018 年 11 月 10 日
Your data is empty.
Chidiebere Ike
2018 年 11 月 10 日
編集済み: Walter Roberson
2018 年 11 月 10 日
Walter Roberson
2018 年 11 月 10 日
The code uses MS Windows folder separator. I had to change from \ to / to get it to work on my Mac.
conf = learn_dict(conf, load_images(...
glob('./CVPR08-SR/Data/Training', '*.bmp') ...
));
I also had to change the addpath to
addpath(fullfile(p, 'ksvdbox')); % K-SVD dictionary training algorithm
addpath(fullfile(p, 'ompbox')); % Orthogonal Matching Pursuit algorithm
Chidiebere Ike
2018 年 11 月 10 日
Walter Roberson
2018 年 11 月 10 日
編集済み: Walter Roberson
2018 年 11 月 10 日
here = pwd;
cd /Users/ikechidiebere/Downloads/Zeyde_superes-master/ompbox/private
make
cd /Users/ikechidiebere/Downloads/Zeyde_superes-master/ksvdbox/private
make
cd(here);
Example
Chidiebere Ike
2018 年 11 月 10 日
Walter Roberson
2018 年 11 月 10 日
That is a sequence of commands you should execute.
The problem you have is that ompbox and ksvdbox have code that needs to be compiled; you have to cd to the appropriate directory and use the command "make" to compile the code.
Chidiebere Ike
2018 年 11 月 11 日
編集済み: Chidiebere Ike
2018 年 11 月 11 日
Chidiebere Ike
2018 年 11 月 11 日
編集済み: Chidiebere Ike
2018 年 11 月 11 日
Walter Roberson
2018 年 11 月 11 日
Which MacOS are you using?
Chidiebere Ike
2018 年 11 月 11 日
編集済み: Chidiebere Ike
2018 年 11 月 11 日
Walter Roberson
2018 年 11 月 11 日
That version of MATLAB did not support that operating system.
Chidiebere Ike
2018 年 11 月 11 日
madhan ravi
2018 年 11 月 11 日
編集済み: madhan ravi
2018 年 11 月 11 日
Chidiebere Ike
2018 年 11 月 11 日
編集済み: Chidiebere Ike
2018 年 11 月 11 日
madhan ravi
2018 年 11 月 11 日
Unable to open file "Set5/results/baby_GT[1-Original].bmp" for writing. You might not have write permission .
Walter Roberson
2018 年 11 月 11 日
Directory Set5 or Set5/results might not exist relative to the directory of execution, or directory Set5/results might be one you do not have permission to write into.
Chidiebere Ike
2018 年 11 月 11 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!