forked from almazan/watts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload_dataset.m
30 lines (28 loc) · 867 Bytes
/
load_dataset.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function data = load_dataset(opts)
disp('* Loading dataset *');
if ~exist(opts.fileData, 'file')
% Loading dataset images and GT
if strcmpi(opts.dataset,'IAM')
data = load_IAM(opts);
elseif strcmpi(opts.dataset,'IIIT5K')
data = load_IIIT5K(opts);
elseif strcmpi(opts.dataset,'SVT')
data = load_SVT(opts);
elseif strcmpi(opts.dataset,'ICDAR11')
data = load_ICDAR11(opts);
elseif strcmpi(opts.dataset,'ICDAR03')
data = load_ICDAR03(opts);
elseif strcmpi(opts.dataset,'GW')
data = load_GW(opts);
elseif strcmpi(opts.dataset,'ESP')
data = load_ESP(opts);
elseif strcmpi(opts.dataset,'LP')
data = load_LP(opts);
else
error('Dataset not supported');
end
save(opts.fileData,'data');
else
load(opts.fileData);
end
end