2016-06-14 21:55:16 +00:00
|
|
|
if(exist('D:/Datasets/Bosphorus/', 'file'))
|
|
|
|
Bosphorus_dir = 'D:\Datasets\Bosphorus/';
|
2018-02-07 20:37:43 +00:00
|
|
|
elseif(exist('E:/datasets/Bosphorus/', 'file'))
|
|
|
|
Bosphorus_dir = 'E:\datasets\Bosphorus/';
|
2016-06-14 21:55:16 +00:00
|
|
|
else
|
|
|
|
fprintf('Bosphorus dataset location not found (or not defined)\n');
|
|
|
|
end
|
|
|
|
|
2018-02-12 20:16:26 +00:00
|
|
|
hog_data_dir = ['E:\Datasets\face_datasets_processed\bosph'];
|
2016-06-14 21:55:16 +00:00
|
|
|
|
|
|
|
all_recs = dir([Bosphorus_dir, '/BosphorusDB/BosphorusDB/bs*']);
|
|
|
|
all_recs_mat = cat(1, all_recs.name);
|
|
|
|
all_recs = cell(numel(all_recs), 1);
|
|
|
|
|
|
|
|
for i=1:size(all_recs_mat,1)
|
|
|
|
|
|
|
|
all_recs{i} = all_recs_mat(i,:);
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
devel_recs = all_recs(1:3:end);
|
|
|
|
train_recs = setdiff(all_recs, devel_recs);
|
|
|
|
|