2016-06-14 23:55:16 +02:00
|
|
|
if(exist('D:/Datasets/Bosphorus/', 'file'))
|
|
|
|
Bosphorus_dir = 'D:\Datasets\Bosphorus/';
|
2017-10-23 21:59:54 +02:00
|
|
|
elseif(exist('E:/Datasets/Bosphorus/', 'file'))
|
|
|
|
Bosphorus_dir = 'E:\Datasets\Bosphorus/';
|
2017-12-18 13:17:53 +01:00
|
|
|
elseif(exist('/media/tadas/2EBEA130BEA0F20F/datasets/Bosphorus/', 'file'))
|
|
|
|
Bosphorus_dir = '/media/tadas/2EBEA130BEA0F20F/datasets/Bosphorus/';
|
|
|
|
else
|
2016-06-14 23:55:16 +02:00
|
|
|
fprintf('Bosphorus dataset location not found (or not defined)\n');
|
|
|
|
end
|
|
|
|
|
|
|
|
hog_data_dir = ['D:\Datasets\face_datasets'];
|
|
|
|
|
|
|
|
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);
|
|
|
|
|