From 3ec39e67fe3664fe783f435797e6b74bfd91ebf9 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Thu, 3 May 2012 11:03:29 +0200 Subject: [PATCH] Disabled automatic plot display since it required an X connection; removed some temporary code. --- faceverify/dct_ubm.py | 6 ++++-- faceverify/eigenface.py | 17 +++++------------ faceverify/gabor_phase.py | 7 +++++-- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/faceverify/dct_ubm.py b/faceverify/dct_ubm.py index 17e86d9..c941d5c 100644 --- a/faceverify/dct_ubm.py +++ b/faceverify/dct_ubm.py @@ -220,6 +220,8 @@ def main(): # save plot to file pyplot.savefig("dct_ubm.png") - # show ROC curve - pyplot.show() + + # show ROC curve. + # enable it if you like. This will open a window and display the ROC curve +# pyplot.show() diff --git a/faceverify/eigenface.py b/faceverify/eigenface.py index 01d20cd..0a08784 100644 --- a/faceverify/eigenface.py +++ b/faceverify/eigenface.py @@ -84,16 +84,7 @@ def main(): print "Training PCA machine" pca_machine = train(training_images) - - # extract the first eigenvector - projection_matrix = pca_machine.weights - eigen_image = projection_matrix[:,0] - # reshape the eigenvector to the right image resolution - eigen_image.shape = (112,92) - # show the first eigenface - pyplot.imshow(eigen_image, cmap = 'gray') - pyplot.show() - + ##################################################################### ### extract eigenface features of model and probe images @@ -152,6 +143,8 @@ def main(): # save plot to file pyplot.savefig("eigenface.png") - # show ROC curve - pyplot.show() + + # show ROC curve. + # enable it if you like. This will open a window and display the ROC curve +# pyplot.show() diff --git a/faceverify/gabor_phase.py b/faceverify/gabor_phase.py index e8c1ed5..f82d2b7 100644 --- a/faceverify/gabor_phase.py +++ b/faceverify/gabor_phase.py @@ -131,5 +131,8 @@ def main(): # save plot to file pyplot.savefig("gabor_phase.png") - # show ROC curve - pyplot.show() + + # show ROC curve. + # enable it if you like. This will open a window and display the ROC curve +# pyplot.show() + -- GitLab