IJB-FL reproduced with the new interface.

This commit is contained in:
Tadas Baltrusaitis
2018-04-15 15:32:41 +01:00
parent b35118917a
commit ae5bb973b8
14 changed files with 15 additions and 10 deletions

View File

@@ -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;