shahrukhqasim / TIES-2.0

Code for: S.R. Qasim, H. Mahmood, and F. Shafait, Rethinking Table Recognition using Graph Neural Networks (2019)
MIT License
277 stars 69 forks source link

Getting access denied error in model_path #42

Closed Ankan1998 closed 3 years ago

Ankan1998 commented 3 years ago

2021-01-20 13:42:41.836366: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error 2021-01-20 13:42:41.847091: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error 2021-01-20 13:42:41.856967: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at save_restore_tensor.cc:175 : Data loss: Unable to open table file D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error Traceback (most recent call last): File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call return fn(*args) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error [[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "bin/iterate/table_adjacency_parsing.py", line 31, in trainer.train() File "D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\iterators\table_adjacency_parsing_iterator.py", line 71, in train saver.restore(sess, self.model_path) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1546, in restore {self.saver_def.filename_tensor_name: save_path}) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 929, in run run_metadata_ptr) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run feed_dict_tensor, options, run_metadata) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run run_metadata) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1348, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error [[node save/RestoreV2 (defined at D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\models\basic_model.py:362) = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Caused by op 'save/RestoreV2', defined at: File "bin/iterate/table_adjacency_parsing.py", line 31, in trainer.train() File "D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\iterators\table_adjacency_parsing_iterator.py", line 48, in train model.initialize(training=True) File "D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\models\basic_model.py", line 92, in initialize self.build_computation_graphs() File "D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\models\basic_model.py", line 362, in build_computation_graphs self.saver = tf.train.Saver(tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, self.get_variable_scope())) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1102, in init self.build() File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1114, in build self._build(self._filename, build_save=True, build_restore=True) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1151, in _build build_save=build_save, build_restore=build_restore) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 795, in _build_internal restore_sequentially, reshape) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 406, in _AddRestoreOps restore_sequentially) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 862, in bulk_restore return io_ops.restore_v2(filename_tensor, names, slices, dtypes) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1549, in restore_v2 shape_and_slices=shape_and_slices, dtypes=dtypes, name=name) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper op_def=op_def) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\util\deprecation.py", line 488, in new_func return func(*args, **kwargs) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 3274, in create_op op_def=op_def) File "D:\Users\ankans\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\ops.py", line 1770, in init self._traceback = tf_stack.extract_stack()

DataLossError (see above for traceback): Unable to open table file D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model: Unknown: NewRandomAccessFile failed to Create/Open: D:\Users\ankans\Desktop\Table_recognition_GNN\outputs\model : Access is denied. ; Input/output error [[node save/RestoreV2 (defined at D:\Users\ankans\Desktop\Table_recognition_GNN\TIES-2.0\python\models\basic_model.py:362) = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Sysinfo: python-->3.6.8 OS --> windows 10 server edition

Any help is highly appreciable