From f46c5e9bec7cfa0dd87d8b8d34c3b8d3e52214e9 Mon Sep 17 00:00:00 2001 From: Amir <183.amir@gmail.com> Date: Wed, 9 Mar 2016 16:23:40 +0100 Subject: [PATCH] Update baselines.py `mobio` is not between `--database` options while `'mobio-female', 'mobio-image', 'mobio-male'` are between the options. I think by `_dev` and `_eval` you meant `_nonorm` and `_ztnorm` when changing the plot names. Specify in info which scores you are using. --- bob/bio/face/script/baselines.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bob/bio/face/script/baselines.py b/bob/bio/face/script/baselines.py index 300bacc4..fe71ad33 100755 --- a/bob/bio/face/script/baselines.py +++ b/bob/bio/face/script/baselines.py @@ -177,8 +177,8 @@ def main(command_line_parameters = None): # Check the database configuration file has_eyes = args.database != 'atnt' - has_zt_norm = args.database in ('banca', 'mobio', 'multipie', 'scface') - has_eval = args.database in ('banca', 'mobio', 'multipie', 'scface', 'xm2vts') + has_zt_norm = args.database in ('banca', 'mobio-female', 'mobio-image', 'mobio-male', 'multipie', 'scface') + has_eval = args.database in ('banca', 'mobio-female', 'mobio-image', 'mobio-male', 'multipie', 'scface', 'xm2vts') if not args.evaluate: @@ -330,24 +330,24 @@ def main(command_line_parameters = None): # first, run the nonorm evaluation if result_zt_dev: - command = [cmd.replace('xxx','_dev') for cmd in base_command] + command = [cmd.replace('xxx','_nonorm') for cmd in base_command] else: command = [cmd.replace('xxx','') for cmd in base_command] command += ['--dev-files'] + result_dev if result_eval: command += ['--eval-files'] + result_eval - logger.info("Executing command:\n%s", bob.bio.base.tools.command_line(command)) + logger.info("Executing command (nonorm):\n%s", bob.bio.base.tools.command_line(command)) if not args.dry_run: subprocess.call(command) # now, also run the ZT norm evaluation, if available if result_zt_dev: - command = [cmd.replace('xxx','_eval') for cmd in base_command] + command = [cmd.replace('xxx','_ztnorm') for cmd in base_command] command += ['--dev-files'] + result_zt_dev if result_zt_eval: command += ['--eval-files'] + result_zt_eval - logger.info("Executing command:\n%s", bob.bio.base.tools.command_line(command)) + logger.info("Executing command (ztnorm):\n%s", bob.bio.base.tools.command_line(command)) if not args.dry_run: subprocess.call(command) -- GitLab