Using static AU models in image mode.
This commit is contained in:
parent
ffe2e66081
commit
67c2934427
2 changed files with 5 additions and 5 deletions
|
@ -281,7 +281,7 @@ namespace OpenFaceOffline
|
|||
}
|
||||
|
||||
// Initialize the face analyser
|
||||
face_analyser = new FaceAnalyserManaged(AppDomain.CurrentDomain.BaseDirectory, DynamicAUModels, image_output_size);
|
||||
face_analyser = new FaceAnalyserManaged(AppDomain.CurrentDomain.BaseDirectory, false, image_output_size);
|
||||
|
||||
// Loading an image file
|
||||
var frame = new RawImage(reader.GetNextImage());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
addpath('../../matlab_runners/Demos');
|
||||
|
||||
root1 = "C:\Users\Tadas\Documents\OpenFace-GUI\x64\Release\record";
|
||||
root2 = "C:\Users\Tadas\Documents\OpenFace-master\exe\FeatureExtraction";
|
||||
root1 = "C:\Users\Tadas Baltrusaitis\Documents\OpenFace-GUI\x64\Release\processed";
|
||||
root2 = "C:\Users\Tadas Baltrusaitis\Documents\OpenFace\x64\Release\processed";
|
||||
|
||||
gui_files = dir(sprintf('%s/*.csv', root1));
|
||||
|
||||
|
@ -39,11 +39,11 @@ for i = 1:numel(gui_files)
|
|||
|
||||
% Compare the simalign ones
|
||||
gui_aligns = dir(sprintf('%s/%s_aligned/*.bmp', root1, name));
|
||||
console_aligns = dir(sprintf('%s/%s/*.bmp', root2, name));
|
||||
console_aligns = dir(sprintf('%s/%s_aligned/*.bmp', root2, name));
|
||||
|
||||
for j=1:numel(gui_aligns)
|
||||
gui_align = imread(sprintf('%s/%s_aligned/%s', root1, name, gui_aligns(j).name));
|
||||
console_align = imread(sprintf('%s/%s/%s', root2, name, console_aligns(j).name));
|
||||
console_align = imread(sprintf('%s/%s_aligned/%s', root2, name, console_aligns(j).name));
|
||||
feat_diff = norm(abs(double(gui_align(:)) - double(console_align(:))));
|
||||
if(feat_diff > 0.1)
|
||||
fprintf('%s error - %.3f\n', var_names{v}, feat_diff);
|
||||
|
|
Loading…
Reference in a new issue