2016-04-28 21:40:36 +02:00
|
|
|
% This is sort of the unit test for the whole module (needs datasets)
|
2017-01-04 23:32:38 +01:00
|
|
|
% Will take several hours to run all
|
|
|
|
clear
|
2016-04-28 21:40:36 +02:00
|
|
|
tic
|
|
|
|
%% Head pose
|
|
|
|
cd('Head Pose Experiments');
|
|
|
|
run_head_pose_tests_OpenFace;
|
2017-10-22 21:02:54 +02:00
|
|
|
assert(median(all_errors_biwi_OF(:)) < 2.8);
|
2016-04-28 21:40:36 +02:00
|
|
|
assert(median(all_errors_bu_OF(:)) < 2.2);
|
|
|
|
assert(median(all_errors_ict_OF(:)) < 2.1);
|
|
|
|
cd('../');
|
|
|
|
|
|
|
|
%% Features
|
|
|
|
cd('Feature Point Experiments');
|
2017-01-04 23:32:38 +01:00
|
|
|
run_OpenFace_feature_point_tests_300W;
|
2016-04-28 21:40:36 +02:00
|
|
|
assert(median(err_clnf) < 0.041);
|
|
|
|
assert(median(err_clnf_wild) < 0.041);
|
|
|
|
run_yt_dataset;
|
|
|
|
assert(median(clnf_error) < 0.053);
|
|
|
|
cd('../');
|
|
|
|
|
|
|
|
%% AUs
|
|
|
|
cd('Action Unit Experiments');
|
2017-10-23 19:05:15 +02:00
|
|
|
run_AU_prediction_Bosphorus
|
|
|
|
assert(mean(cccs_reg) > 0.56);
|
2017-12-06 16:43:55 +01:00
|
|
|
assert(mean(f1s_class) > 0.49);
|
2017-10-23 19:05:15 +02:00
|
|
|
|
|
|
|
run_AU_prediction_BP4D
|
|
|
|
assert(mean(ints_cccs) > 0.6);
|
|
|
|
assert(mean(f1s_class) > 0.6);
|
|
|
|
|
2016-04-28 21:40:36 +02:00
|
|
|
run_AU_prediction_DISFA
|
2016-07-22 15:35:50 +02:00
|
|
|
assert(mean(au_res) > 0.7);
|
|
|
|
|
|
|
|
run_AU_prediction_SEMAINE
|
2017-08-01 23:11:02 +02:00
|
|
|
assert(mean(f1s) > 0.41);
|
2016-07-22 15:35:50 +02:00
|
|
|
|
|
|
|
run_AU_prediction_FERA2011
|
2016-07-22 17:28:45 +02:00
|
|
|
assert(mean(au_res) > 0.5);
|
2016-07-22 15:35:50 +02:00
|
|
|
|
2016-04-28 21:40:36 +02:00
|
|
|
cd('../');
|
|
|
|
|
|
|
|
%% Gaze
|
|
|
|
cd('Gaze Experiments');
|
|
|
|
extract_mpii_gaze_test
|
2017-12-10 11:55:34 +01:00
|
|
|
assert(mean_error < 9.7)
|
2016-07-22 15:35:50 +02:00
|
|
|
assert(median_error < 9.0)
|
2016-04-28 21:40:36 +02:00
|
|
|
cd('../');
|
|
|
|
|
|
|
|
%% Demos
|
2017-12-10 15:49:59 +01:00
|
|
|
clear;
|
|
|
|
close all;
|
2016-04-28 21:40:36 +02:00
|
|
|
cd('Demos');
|
|
|
|
run_demo_images;
|
|
|
|
run_demo_videos;
|
|
|
|
run_demo_video_multi;
|
2017-11-24 18:16:15 +01:00
|
|
|
run_demo_align_size;
|
2016-04-28 21:40:36 +02:00
|
|
|
feature_extraction_demo_vid;
|
|
|
|
feature_extraction_demo_img_seq;
|
|
|
|
gaze_extraction_demo_vid;
|
|
|
|
cd('../');
|
|
|
|
toc
|