mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-18 21:27:49 +00:00
IJB-FL reproduced with the new interface.
This commit is contained in:
@@ -3,7 +3,7 @@ function Script_CLNF_general()
|
||||
addpath(genpath('../'));
|
||||
|
||||
% Replace this with the location of the IJB-FL data location
|
||||
root_test_data = 'D:/Datasets/janus_labeled';
|
||||
root_test_data = 'F:\Dropbox\janus_labeled';
|
||||
[images, detections, labels] = Collect_JANUS_imgs(root_test_data);
|
||||
|
||||
%% loading the patch experts
|
||||
@@ -12,6 +12,8 @@ root_test_data = 'D:/Datasets/janus_labeled';
|
||||
views = [0,0,0; 0,-30,0; 0,30,0; 0,-55,0; 0,55,0; 0,0,30; 0,0,-30; 0,-90,0; 0,90,0; 0,-70,40; 0,70,-40];
|
||||
views = views * pi/180;
|
||||
|
||||
[ patches_51, pdm_51, clmParams_51, inds_full, inds_inner ] = Load_CLNF_inner();
|
||||
|
||||
shapes_all = zeros(size(labels,2),size(labels,3), size(labels,1));
|
||||
labels_all = zeros(size(labels,2),size(labels,3), size(labels,1));
|
||||
lhoods = zeros(numel(images),1);
|
||||
@@ -33,6 +35,9 @@ for i=1:numel(images)
|
||||
bbox = detections(i,:);
|
||||
|
||||
[shape,~,~,lhood,lmark_lhood,view_used] = Fitting_from_bb_multi_hyp(image, [], bbox, pdm, patches, clmParams, views);
|
||||
|
||||
% Perform inner landmark fitting now
|
||||
[shape, shape_inner] = Fitting_from_bb_hierarch(image, pdm, pdm_51, patches_51, clmParams_51, shape, inds_full, inds_inner);
|
||||
|
||||
shapes_all(:,:,i) = shape;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user