mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-16 12:17:57 +00:00
64 lines
2.1 KiB
Matlab
64 lines
2.1 KiB
Matlab
clear
|
|
|
|
if(isunix)
|
|
executable = '"../../build/bin/FeatureExtraction"';
|
|
else
|
|
executable = '"../../x64/Release/FeatureExtraction.exe"';
|
|
end
|
|
|
|
|
|
if(exist('D:\Datasets\300VW_Dataset_2015_12_14\300VW_Dataset_2015_12_14/', 'file'))
|
|
database_root = 'D:\Datasets\300VW_Dataset_2015_12_14\300VW_Dataset_2015_12_14/';
|
|
elseif(exist('E:\datasets\300VW\300VW_Dataset_2015_12_14', 'file'))
|
|
database_root = 'E:\datasets\300VW\300VW_Dataset_2015_12_14';
|
|
elseif(exist('/multicomp/datasets/300VW_Dataset_2015_12_14/', 'file'))
|
|
database_root = '/multicomp/datasets/300VW_Dataset_2015_12_14/';
|
|
elseif(exist('/media/tadas/2EBEA130BEA0F20F/datasets/300VW/300VW_Dataset_2015_12_14', 'file'))
|
|
database_root = '/media/tadas/2EBEA130BEA0F20F/datasets/300VW/300VW_Dataset_2015_12_14';
|
|
else
|
|
fprintf('Could not find the dataset');
|
|
return;
|
|
end
|
|
%%
|
|
cat_1 = [ 114, 124, 125, 126, 150, 158, 401, 402, 505, 506, 507, 508, 509, 510, 511, 514, 515, 518, 519, 520, 521, 522, 524, 525, 537, 538, 540, 541, 546, 547, 548];
|
|
cat_2 = [203, 208, 211, 212, 213, 214, 218, 224, 403, 404, 405, 406, 407, 408, 409, 412, 550, 551, 553];
|
|
cat_3 = [410, 411, 516, 517, 526, 528, 529, 530, 531, 533, 557, 558, 559, 562];
|
|
in_dirs = cat(2, cat_1, cat_2, cat_3);
|
|
|
|
%% Running CE-CLM models
|
|
output = '300VW_experiment/ceclm';
|
|
|
|
command_shared = sprintf('%s -2Dfp -tracked -out_dir "%s" ', executable, output);
|
|
|
|
parfor i=1:numel(in_dirs)
|
|
name = num2str(in_dirs(i));
|
|
|
|
in_file_name = [database_root '/', name, '/vid.avi'];
|
|
|
|
command = cat(2, command_shared, [' -f "' in_file_name '" -of "' name '"']);
|
|
dos(command);
|
|
end
|
|
|
|
%% Running CLNF models
|
|
output = '300VW_experiment/clnf';
|
|
|
|
command_shared = sprintf('%s -2Dfp -tracked -out_dir "%s" -mloc model/main_clnf_general.txt -verbose ', executable, output);
|
|
|
|
parfor i=1:numel(in_dirs)
|
|
name = num2str(in_dirs(i));
|
|
|
|
in_file_name = [database_root '/', name, '/vid.avi'];
|
|
|
|
command = cat(2, command_shared, [' -f "' in_file_name '" -of "' name '"']);
|
|
dos(command);
|
|
end
|
|
|
|
%%
|
|
Compute_300VW_errors;
|
|
|
|
%%
|
|
Construct_error_table_300VW;
|
|
|
|
%%
|
|
Display_300VW_results_49;
|
|
Display_300VW_results_66; |