Using static AU models in image mode.

This commit is contained in:
Tadas Baltrusaitis 2018-01-31 17:49:29 +00:00
parent ffe2e66081
commit 67c2934427
2 changed files with 5 additions and 5 deletions

View file

@ -281,7 +281,7 @@ namespace OpenFaceOffline
} }
// Initialize the face analyser // 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 // Loading an image file
var frame = new RawImage(reader.GetNextImage()); var frame = new RawImage(reader.GetNextImage());

View file

@ -1,7 +1,7 @@
addpath('../../matlab_runners/Demos'); addpath('../../matlab_runners/Demos');
root1 = "C:\Users\Tadas\Documents\OpenFace-GUI\x64\Release\record"; root1 = "C:\Users\Tadas Baltrusaitis\Documents\OpenFace-GUI\x64\Release\processed";
root2 = "C:\Users\Tadas\Documents\OpenFace-master\exe\FeatureExtraction"; root2 = "C:\Users\Tadas Baltrusaitis\Documents\OpenFace\x64\Release\processed";
gui_files = dir(sprintf('%s/*.csv', root1)); gui_files = dir(sprintf('%s/*.csv', root1));
@ -39,11 +39,11 @@ for i = 1:numel(gui_files)
% Compare the simalign ones % Compare the simalign ones
gui_aligns = dir(sprintf('%s/%s_aligned/*.bmp', root1, name)); 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) for j=1:numel(gui_aligns)
gui_align = imread(sprintf('%s/%s_aligned/%s', root1, name, gui_aligns(j).name)); 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(:)))); feat_diff = norm(abs(double(gui_align(:)) - double(console_align(:))));
if(feat_diff > 0.1) if(feat_diff > 0.1)
fprintf('%s error - %.3f\n', var_names{v}, feat_diff); fprintf('%s error - %.3f\n', var_names{v}, feat_diff);