diff --git a/bob/example/faceverify/eigenface.py b/bob/example/faceverify/eigenface.py index 075ec841e3d44fefc294c30973338726c684d906..484f22beb36e68a98a8f8a10918679b6e0436de2 100644 --- a/bob/example/faceverify/eigenface.py +++ b/bob/example/faceverify/eigenface.py @@ -119,7 +119,7 @@ def main(): for file_id, image in model_features.items(): model_id = atnt_db.get_client_id_from_file_id(file_id) # "enroll" model by collecting all model features of this client - models[model_id].append(model_features[key]) + models[model_id].append(model_features[file_id]) print("Extracting probes") probe_features = {} @@ -139,7 +139,8 @@ def main(): for probe_key, probe_feature in probe_features.items(): # compute scores for all model features scores = [- DISTANCE_FUNCTION(model_feature, probe_feature) for model_feature in model] - # the final score is the minimum distance (i.e., the maximum negative distance) + # the final score is the average distance + # :: Note for the testers :: Try out other strategies! score = numpy.sum(scores) # check if this is a positive score