From 68d4690bba2dc0145cd490bd5664a802e237cd20 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Thu, 3 May 2012 11:48:12 +0200 Subject: [PATCH] Corrected function call to be API-compatible to Bob 1.0.3 --- README.rst | 2 +- faceverify/dct_ubm.py | 2 +- localbob.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index c781c32..ce60764 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ have a Bob version yet, you can get it from: http://idiap.github.com/bob/ If you already have installed Bob, please make sure that you have at least -the version 1.0.3, otherwise the example won't work. +the version 1.0.4, otherwise the example won't work. The AT&T image database is quite small, but sufficient to show how the face verification methods work. Still, the results may not be meaningful. One good diff --git a/faceverify/dct_ubm.py b/faceverify/dct_ubm.py index c941d5c..7b77f52 100644 --- a/faceverify/dct_ubm.py +++ b/faceverify/dct_ubm.py @@ -36,7 +36,7 @@ def extract_feature(image): """Extracts the DCT features for the given image""" # compute shape of the image blocks - block_shape = bob.ip.get_block_3d_output_shape(image, DCT_BLOCK_SIZE, DCT_BLOCK_SIZE, DCT_BLOCK_OVERLAP, DCT_BLOCK_OVERLAP) + block_shape = bob.ip.get_block_shape(image, DCT_BLOCK_SIZE, DCT_BLOCK_SIZE, DCT_BLOCK_OVERLAP, DCT_BLOCK_OVERLAP) image_blocks = numpy.ndarray(block_shape, 'float64') # fill image blocks diff --git a/localbob.cfg b/localbob.cfg index f51b78b..acdef6f 100644 --- a/localbob.cfg +++ b/localbob.cfg @@ -36,7 +36,7 @@ recipe = local.bob.recipe:config ; If you go for a relative path, remember this path is relative to the path ; you are calling buildout from. This is normally the path that contains the ; file 'setup.py' for your own package. -install-directory = ../bob/build +install-directory = /scratch/mguenther/Bob/cmake/trunk ; Some examples for Idiap: ;install-directory = /idiap/group/torch5spro/releases/bob-1.0.2/install/linux-x86_64-release -- GitLab