Created
December 5, 2017 20:11
-
-
Save takavfx/fe1fdecd5a581f759368ef9af2731167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python error: Traceback (most recent call last): | |
File "", line 47, in | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1666, in restore | |
{self.saver_def.filename_tensor_name: save_path}) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 889, in run | |
run_metadata_ptr) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1120, in _run | |
feed_dict_tensor, options, run_metadata) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1317, in _do_run | |
options, run_metadata) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1336, in _do_call | |
raise type(e)(node_def, op, message) | |
NotFoundError: Key convolutional_34/Variable not found in checkpoint | |
[[Node: save_24/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save_24/Const_0_0, save_24/RestoreV2/tensor_names, save_24/RestoreV2/shape_and_slices)]] | |
Caused by op u'save_24/RestoreV2', defined at: | |
File "Mouse Event Handler", line 18, in | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraph.py", line 93, in handleEvent | |
handler_coroutine.send(uievent) | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraph.py", line 145, in handleEventCoroutine | |
pending_actions) | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraph.py", line 1160, in handleEvent | |
uievent.editor) | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraphui.py", line 829, in createInfoWindow | |
theSharedInfoWindow.display(node, mousepos, pinnable, transient, force_cook) | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraphui.py", line 568, in display | |
self.update(node, pinnable, recook) | |
File "/opt/hfs16.5.268/houdini/python2.7libs/nodegraphui.py", line 590, in update | |
node.cook() | |
File "/opt/hfs16.5.268/houdini/python2.7libs/hou.py", line 8895, in cook | |
return _hou.Node_cook(*args, **kwargs) | |
File "", line 45, in | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1218, in __init__ | |
self.build() | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1227, in build | |
self._build(self._filename, build_save=True, build_restore=True) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1263, in _build | |
build_save=build_save, build_restore=build_restore) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 751, in _build_internal | |
restore_sequentially, reshape) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 427, in _AddRestoreOps | |
tensors = self.restore_op(filename_tensor, saveable, preferred_shard) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 267, in restore_op | |
[spec.tensor.dtype])[0]) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1021, in restore_v2 | |
shape_and_slices=shape_and_slices, dtypes=dtypes, name=name) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper | |
op_def=op_def) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op | |
op_def=op_def) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1470, in __init__ | |
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access | |
NotFoundError (see above for traceback): Key convolutional_34/Variable not found in checkpoint | |
[[Node: save_24/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save_24/Const_0_0, save_24/RestoreV2/tensor_names, save_24/RestoreV2/shape_and_slices)]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This happens when tf.train.Saver().restore() cannot restore some variables.