From a95b53f8916e1628821dfb27522046c35f10f666 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Wed, 11 Oct 2017 23:41:10 +0200
Subject: [PATCH] model_dir is important for evaluation

---
 bob/learn/tensorflow/script/eval_generic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bob/learn/tensorflow/script/eval_generic.py b/bob/learn/tensorflow/script/eval_generic.py
index 4c909635..b77bb96f 100644
--- a/bob/learn/tensorflow/script/eval_generic.py
+++ b/bob/learn/tensorflow/script/eval_generic.py
@@ -20,6 +20,7 @@ The configuration files should have the following objects totally:
 
   ## Required objects:
 
+  model_dir
   model_fn
   eval_input_fn
 
@@ -27,7 +28,6 @@ The configuration files should have the following objects totally:
 
   eval_interval_secs
   run_once
-  model_dir
   run_config
   model_params
   steps
@@ -114,12 +114,12 @@ def main(argv=None):
     config_files = args['<config_files>']
     config = read_config_file(config_files)
 
+    model_dir = config.model_dir
     model_fn = config.model_fn
     eval_input_fn = config.eval_input_fn
 
     eval_interval_secs = getattr(config, 'eval_interval_secs', 300)
     run_once = getattr(config, 'run_once', False)
-    model_dir = getattr(config, 'model_dir', None)
     run_config = getattr(config, 'run_config', None)
     model_params = getattr(config, 'model_params', None)
     steps = getattr(config, 'steps', None)
-- 
GitLab