From 67c2934427f6596116047006086c7c1d1da2480b Mon Sep 17 00:00:00 2001 From: Tadas Baltrusaitis Date: Wed, 31 Jan 2018 17:49:29 +0000 Subject: [PATCH] Using static AU models in image mode. --- gui/OpenFaceOffline/MainWindow.xaml.cs | 2 +- gui/OpenFaceOffline/confirm_gui_output.m | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/OpenFaceOffline/MainWindow.xaml.cs b/gui/OpenFaceOffline/MainWindow.xaml.cs index 310a827..ad15f1d 100644 --- a/gui/OpenFaceOffline/MainWindow.xaml.cs +++ b/gui/OpenFaceOffline/MainWindow.xaml.cs @@ -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()); diff --git a/gui/OpenFaceOffline/confirm_gui_output.m b/gui/OpenFaceOffline/confirm_gui_output.m index abfd3f6..d7a1120 100644 --- a/gui/OpenFaceOffline/confirm_gui_output.m +++ b/gui/OpenFaceOffline/confirm_gui_output.m @@ -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);