フィルターのクリア

I have a dataset with 24 classes and 4320 samples and i m having program for it. If i use the same program for 68 classes with 4079 images it throws error. what i have to change?

2 ビュー (過去 30 日間)
It throws error in the following lines:
classIDs(i) = str2num(tline(index+5:end));
the code :
tline = fgetl(fid); % get the number of image samples
i = 0;
while 1
tline = fgetl(fid);
if ~ischar(tline)
break;
end
index = findstr(tline,'.');
i = i+1;
filenames(i) = str2num(tline(1:index-1))+1;% the picture ID starts from 0, but the index of Matlab array starts from 1
classIDs(i) = str2num(tline(index+5:end));
end
Tell me what i have to change. I used outex tc 00010 and now I have changed to tc14. Thanks in advance
  7 件のコメント
Shan Sha
Shan Sha 2018 年 10 月 4 日
the value of tline(index+5:end) is 1x108 char
Shan Sha
Shan Sha 2018 年 10 月 4 日
my actual code is this. please check with this. sorry for the inconvenience mam

サインインしてコメントする。

回答 (1 件)

Dilip Kunderu
Dilip Kunderu 2018 年 9 月 19 日
Your 'testTxt' file seems to be empty, leading to the method 'ReadOutexTxt' to break before populating filenames and classIDs.
  5 件のコメント
Shan Sha
Shan Sha 2018 年 10 月 3 日
sorry for the delay sir.please solve the error. I have used outex 14 dataset which i couldn't upload with this
Shan Sha
Shan Sha 2018 年 10 月 4 日
this is the actual code. for this i have downloaded outex tc 14 dataset. sorry for inconvenience. please check with this code

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by