diff --git a/bob/bio/face/database/lfw.py b/bob/bio/face/database/lfw.py index cdf3468a0f750b06e796d36b1dbc1c3bece8e14f..b00f41a75e3b5b34c88cb5e1f95d69a73b57d16a 100644 --- a/bob/bio/face/database/lfw.py +++ b/bob/bio/face/database/lfw.py @@ -55,3 +55,13 @@ class LFWBioDatabase(BioDatabase): def annotations(self, myfile): return self._db.annotations(myfile._f) + + def client_id_from_model_id(self, model_id, group='dev'): + """Return the client id associated with the given model id. + In this base class implementation, it is assumed that only one model is enrolled for each client and, thus, client id and model id are identical. + All key word arguments are ignored. + Please override this function in derived class implementations to change this behavior.""" + + # since there is one model per file, we can re-use the function above. + return self._db.get_client_id_from_file_id(model_id) +