mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 11:17:53 +00:00
101 lines
3.2 KiB
Matlab
101 lines
3.2 KiB
Matlab
clear
|
|
|
|
%%
|
|
inds_ibug = 562:696;
|
|
|
|
load('./results/results_clnf_wild.mat');
|
|
|
|
clnf_error_ibug = compute_error( experiment.labels(:,:,inds_ibug), experiment.shapes(:,:,inds_ibug) + 1.0);
|
|
|
|
load('./results/results_ceclm_menpo.mat');
|
|
|
|
ceclm_error_ibug = compute_error( experiment.labels(:,:,inds_ibug), experiment.shapes(:,:,inds_ibug) + 1.0);
|
|
|
|
load('results/zhu_wild.mat');
|
|
|
|
tsm_error_ibug = compute_error(labels_all(:,:,inds_ibug), shapes_all(:,:,inds_ibug));
|
|
|
|
load('results/300W_3DDFA.mat');
|
|
error_3ddfa_ibug = compute_error( labels_all(:,:,inds_ibug), shapes(:,:,inds_ibug) + 1.0);
|
|
|
|
load('results/results_clm.mat');
|
|
clm_error_ibug = compute_error( experiment.labels(:,:,inds_ibug), experiment.shapes(:,:,inds_ibug) + 1.0);
|
|
|
|
load('results/drmf_wild.mat');
|
|
|
|
drmf_error_ibug = compute_error(labels_all(:,:,inds_ibug), shapes_all(:,:,inds_ibug));
|
|
|
|
load('results/CFAN_300W.mat');
|
|
|
|
cfan_error_ibug = compute_error(labels_all(:,:,inds_ibug), shapes_all(:,:,inds_ibug)+1.0);
|
|
|
|
load('results/300W-CFSS.mat');
|
|
|
|
shapes = zeros(size(estimatedPose,2)/2,2,size(estimatedPose,1));
|
|
for i=1:size(estimatedPose,1)
|
|
xs = estimatedPose(i,1:end/2);
|
|
ys = estimatedPose(i,end/2+1:end);
|
|
shapes(:,1,i) = xs;
|
|
shapes(:,2,i) = ys;
|
|
end
|
|
load('results/results_clnf_wild.mat');
|
|
cfss_error_ibug = compute_error(experiment.labels(:,:,inds_ibug), shapes(:,:,inds_ibug)+0.5);
|
|
|
|
|
|
load('results/tcdcn_300W.mat');
|
|
shapes_c = shapes;
|
|
shapes = zeros(68,2,numel(shapes));
|
|
for i=1:numel(shapes_c)
|
|
xs = shapes_c{i}(:,1);
|
|
ys = shapes_c{i}(:,2);
|
|
shapes(:,1,i) = xs;
|
|
shapes(:,2,i) = ys;
|
|
end
|
|
load('results/results_clnf_wild.mat');
|
|
tcdcn_error_ibug = compute_error(experiment.labels(:,:,inds_ibug), shapes(:,:,inds_ibug)+0.5);
|
|
|
|
%%
|
|
inds_comm = [338:561,697:1026];
|
|
|
|
load('./results/results_clnf_wild.mat');
|
|
clnf_error_comm = compute_error( experiment.labels(:,:,inds_comm), experiment.shapes(:,:,inds_comm) + 1.0);
|
|
|
|
load('./results/results_ceclm_menpo.mat');
|
|
ceclm_error_comm = compute_error( experiment.labels(:,:,inds_comm), experiment.shapes(:,:,inds_comm) + 1.0);
|
|
|
|
load('results/zhu_wild.mat');
|
|
tsm_error_comm = compute_error(labels_all(:,:,inds_comm), shapes_all(:,:,inds_comm));
|
|
|
|
load('results/results_clm.mat');
|
|
clm_error_comm = compute_error( experiment.labels(:,:,inds_comm), experiment.shapes(:,:,inds_comm) + 1.0);
|
|
|
|
load('results/drmf_wild.mat');
|
|
drmf_error_comm = compute_error(labels_all(:,:,inds_comm), shapes_all(:,:,inds_comm));
|
|
|
|
load('results/300W_3DDFA.mat');
|
|
error_3ddfa_comm = compute_error( labels_all(:,:,inds_comm), shapes(:,:,inds_comm) + 1.0);
|
|
|
|
load('results/300W-CFSS.mat');
|
|
shapes = zeros(size(estimatedPose,2)/2,2,size(estimatedPose,1));
|
|
for i=1:size(estimatedPose,1)
|
|
xs = estimatedPose(i,1:end/2);
|
|
ys = estimatedPose(i,end/2+1:end);
|
|
shapes(:,1,i) = xs;
|
|
shapes(:,2,i) = ys;
|
|
end
|
|
|
|
load('./results/results_clnf_wild.mat');
|
|
cfss_error_comm = compute_error(experiment.labels(:,:,inds_comm), shapes(:,:,inds_comm)+0.5);
|
|
|
|
load('results/tcdcn_300W.mat');
|
|
shapes_c = shapes;
|
|
shapes = zeros(68,2,numel(shapes));
|
|
for i=1:numel(shapes_c)
|
|
xs = shapes_c{i}(:,1);
|
|
ys = shapes_c{i}(:,2);
|
|
shapes(:,1,i) = xs;
|
|
shapes(:,2,i) = ys;
|
|
end
|
|
load('./results/results_clnf_wild.mat');
|
|
tcdcn_error_comm = compute_error(experiment.labels(:,:,inds_comm), shapes(:,:,inds_comm)+0.5);
|