mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-16 12:17:57 +00:00
54 lines
1.6 KiB
Matlab
54 lines
1.6 KiB
Matlab
clear
|
|
|
|
load('results/results_clnf_cross-data.mat');
|
|
load('results/menpo_labels.mat');
|
|
[clnf_error, frontal_ids] = compute_error_menpo_1( labels, experiments.shapes);
|
|
clnf_error_frontal = clnf_error(frontal_ids);
|
|
clnf_error_profile = clnf_error(~frontal_ids);
|
|
|
|
load('results/results_ceclm_cross-data.mat');
|
|
|
|
[ceclm_error, frontal_ids] = compute_error_menpo_1( labels, experiments.shapes);
|
|
ceclm_error_frontal = ceclm_error(frontal_ids);
|
|
ceclm_error_profile = ceclm_error(~frontal_ids);
|
|
|
|
load('results/CFAN_menpo_train.mat');
|
|
for i = 1:numel(shapes)
|
|
shapes{i} = shapes{i}-0.5;
|
|
end
|
|
|
|
[cfan_error, frontal_ids] = compute_error_menpo_1(labels, shapes);
|
|
cfan_error_frontal = cfan_error(frontal_ids);
|
|
cfan_error_profile = cfan_error(~frontal_ids);
|
|
|
|
load('results/tcdcn_menpo.mat');
|
|
for i = 1:numel(shapes)
|
|
shapes{i} = shapes{i}+0.5;
|
|
end
|
|
|
|
[tcdcn_error, frontal_ids] = compute_error_menpo_1(labels, shapes);
|
|
tcdcn_error_frontal = tcdcn_error(frontal_ids);
|
|
tcdcn_error_profile = tcdcn_error(~frontal_ids);
|
|
|
|
load('results/menpo_train_3DDFA.mat');
|
|
for i = 1:numel(shapes)
|
|
shapes{i} = shapes{i}-0.5;
|
|
end
|
|
|
|
[error_3ddfa, frontal_ids] = compute_error_menpo_1(labels, shapes);
|
|
error_3ddfa_frontal = error_3ddfa(frontal_ids);
|
|
error_3ddfa_profile = error_3ddfa(~frontal_ids);
|
|
|
|
|
|
load('results/Menpo-CFSS_train.mat');
|
|
shapes = cell(size(estimatedPoseFull,1),1);
|
|
|
|
for i = 1:numel(shapes)
|
|
shape = cat(2, estimatedPoseFull(i,1:68)', estimatedPoseFull(i,69:end)');
|
|
shapes{i} = shape-0.5;
|
|
end
|
|
|
|
[cfss_error, frontal_ids] = compute_error_menpo_1(labels, shapes);
|
|
cfss_error_frontal = cfss_error(frontal_ids);
|
|
cfss_error_profile = cfss_error(~frontal_ids);
|