Showing
2 changed files
with
5 additions
and
5 deletions
1 | [client] | 1 | [client] |
2 | -user=root | 2 | +user=admin |
3 | -password=1234 | 3 | +password=attendance |
4 | -host=localhost | 4 | +host=attendance-system.c4yvip5o6czh.ap-northeast-2.rds.amazonaws.com |
5 | database=attendance | 5 | database=attendance |
6 | -charset=utf8 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
6 | +charset=utf8 | ... | ... |
... | @@ -190,7 +190,7 @@ def load_model(model, input_map=None): | ... | @@ -190,7 +190,7 @@ def load_model(model, input_map=None): |
190 | print('Checkpoint file: %s' % ckpt_file) | 190 | print('Checkpoint file: %s' % ckpt_file) |
191 | 191 | ||
192 | saver = tf.compat.v1.train.import_meta_graph(os.path.join(model_exp, meta_file), input_map=input_map) | 192 | saver = tf.compat.v1.train.import_meta_graph(os.path.join(model_exp, meta_file), input_map=input_map) |
193 | - saver.restore(tf.get_default_session(), os.path.join(model_exp, ckpt_file)) | 193 | + saver.restore(tf.compat.v1.get_default_session(), os.path.join(model_exp, ckpt_file)) |
194 | 194 | ||
195 | def get_model_filenames(model_dir): | 195 | def get_model_filenames(model_dir): |
196 | files = os.listdir(model_dir) | 196 | files = os.listdir(model_dir) | ... | ... |
-
Please register or login to post a comment