Importing


In [ ]:
%matplotlib inline
import os.path

from menpo.visualize import visualize_images
from menpofit.visualize import visualize_shape_model, visualize_fitting_results, plot_ced

from antonakoscvpr2015.benchmark.base import train_aps, fit_aps
from antonakoscvpr2015.utils.base import pickle_load

Define Results Filenames


In [ ]:
experiments_path = '/home/ea1812/Desktop/EXPERIMENTS/'

final_paths = []
# state-of-art
#final_paths.append('lfpwtrain_ibug_face_68_aam_dsift_def-mst_68_app-chain_per_area_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_68_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_68_aam_dsift_def-mst_68_app-diagonal_patch17_norm100_lev2_sc20_app300_noScaledShape_procrustes__lfpwtest_ibug_face_68_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('/home/ea1812/Desktop/EXPERIMENTS/Results/global_aam_dsift')
#final_paths.append('/home/ea1812/Desktop/EXPERIMENTS/Results/parts_aam_dsift')

#### APPEARANCE GRAPH
### menpo, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_single_gaussian_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_multiple_gaussians_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-joan_graph_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-complete_and_chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-mst_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-star_tree_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
### menpofast, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_single_gaussian_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_multiple_gaussians_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-joan_graph_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-complete_and_chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-mst_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-star_tree_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
### menpo, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_single_gaussian_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_multiple_gaussians_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-joan_graph_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-complete_and_chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-mst_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-star_tree_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
### menpofast, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_single_gaussian_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-full_multiple_gaussians_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-joan_graph_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-complete_and_chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-mst_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-star_tree_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')



#### SHAPE GRAPH
### menpo, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_multiple_gaussians_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-diagonal_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-joan_graph_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-complete_and_chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-mst_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-star_tree_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
### menpofast, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_multiple_gaussians_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-diagonal_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-joan_graph_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-complete_and_chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-mst_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-star_tree_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
### menpo, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_multiple_gaussians_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-diagonal_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-joan_graph_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-complete_and_chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-mst_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-star_tree_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
### menpofast, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_multiple_gaussians_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-diagonal_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-joan_graph_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-complete_and_chain_per_area_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-mst_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-star_tree_66_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')



#### DEFORMATION GRAPH
### menpo, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_tri_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_unclosed_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-joan_graph_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-complete_and_chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-star_tree_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
### menpofast, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_tri_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_unclosed_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-joan_graph_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-complete_and_chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-star_tree_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')
### menpo, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_tri_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_unclosed_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-joan_graph_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-complete_and_chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-star_tree_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
### menpofast, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-full_multiple_gaussians_tri_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-chain_per_area_unclosed_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-joan_graph_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-complete_and_chain_per_area_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-star_tree_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-chain_per_area_66_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpofast.pickle')



#### PATCH SIZE
### menpo, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch11_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch15_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch19_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch21_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
### menpofast, lfpwtest
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch11_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch15_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch19_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch21_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
### menpo, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch11_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch15_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch19_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch21_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')
### menpofast, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch11_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch15_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch19_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch21_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch13_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpofast.pickle')

#### APPEARANCE PARAMETERS
### menpo, afw
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app50_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app100_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app150_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app200_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app300_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app400_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_app600_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')
#final_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch17_norm100_lev2_sc20_appNone_noScaledShape_procrustes__afw_ibug_face_66_inverse_n_sh[3, 12]_noDef_noise4_iters50_menpo.pickle')

initial_paths = []
initial_paths.append('lfpwtrain_ibug_face_66_no_op_def-mst_66_app-diagonal_sha-full_single_gaussian_patch11_norm100_lev2_sc20_app400_noScaledShape_procrustes__lfpwtest_ibug_face_66_inverse_n_sh[3, 12]_def_noise4_iters50_menpo.pickle')

In [ ]:
#legend_entries = ['sift',
#                  'aam sift',
#                  'tzimiro sift',
#                  'init']

#legend_entries = ['mst_68',
#                  'star_tree_66',
#                  'no def',
#                  'init']

#legend_entries = ['full_single_gaussian',
#                  'full_multiple_gaussians_66',
#                  'diagonal',
#                  'chain_per_area_66',
#                  'joan_graph_66',
#                  'complete_and_chain_per_area_66',
#                  'mst_66',
#                  'star_tree_66',
#                  'init']

legend_entries = ['full_multiple_gaussians_66',
                  'full_multiple_gaussians_tri_66',
                  'chain_per_area_66',
                  'chain_per_area_unclosed_66',
                  'joan_graph_66',
                  'complete_and_chain_per_area_66',
                  'mst_66',
                  'star_tree_66',
                  'no deformation',
                  'init']

#legend_entries = ['11 x 11',
#                  '13 x 13',
#                  '15 x 15',
#                  '17 x 17',
#                  '19 x 19',
#                  '21 x 21',
#                  '23 x 23',
#                  'init']

#legend_entries = ['50',
#                  '100',
#                  '150',
#                  '200',
#                  '300',
#                  '400',
#                  '600',
#                  'None',
#                  'init']

Get Errors


In [ ]:
final_errors = []
for p in final_paths:
    f_errors, _ = pickle_load(os.path.join(experiments_path, 'Results', p))
    final_errors.append(f_errors)
    
initial_errors = []
for p in initial_paths:
    _, i_errors = pickle_load(os.path.join(experiments_path, 'Results', p))
    initial_errors.append(i_errors)
    
all_errors = final_errors + initial_errors

Plot Curves


In [ ]:
plot_ced(all_errors, legend_entries=legend_entries, popup=False)

In [ ]:
import numpy as np
print " MEAN  |   STD  | MEDIAN |"
print "-------------------------------------------"
for i, f in enumerate(final_errors):
    print "{0:.4f} | {1:.4f} | {2:.4f} | {3}".format(np.mean(f), np.std(f), np.median(f), legend_entries[i])

In [ ]:


In [ ]: