WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
INFO:tensorflow:Restoring parameters from /home/brx/Documents/Projects/公告提取/Gonggao/output/model.ckpt-6018
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1356, in _do_call
return fn(*args)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1429, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
(0) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [769,4] rhs shape= [896,512]
[[{{node save/Assign_205}}]]
[[save/RestoreV2/_406]]
(1) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [769,4] rhs shape= [896,512]
[[{{node save/Assign_205}}]]
0 successful operations.
0 derived errors ignored.
修改了crf_only = False,再调用terminal_predict.py出错,好像是模型结构匹配不上
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version. Instructions for updating: Use standard file APIs to check for files with this prefix. INFO:tensorflow:Restoring parameters from /home/brx/Documents/Projects/公告提取/Gonggao/output/model.ckpt-6018 Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1356, in _do_call return fn(*args) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1341, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1429, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [769,4] rhs shape= [896,512] [[{{node save/Assign_205}}]] [[save/RestoreV2/_406]] (1) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [769,4] rhs shape= [896,512] [[{{node save/Assign_205}}]] 0 successful operations. 0 derived errors ignored.