Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensor name "v_template" not found in checkpoint files #10

Open
hadzcamir opened this issue Dec 14, 2021 · 0 comments
Open

Tensor name "v_template" not found in checkpoint files #10

hadzcamir opened this issue Dec 14, 2021 · 0 comments

Comments

@hadzcamir
Copy link

Hi,

I'm trying to run a demo. I pass with the argument --load_paths one of the files in the folder. I get:

2021-12-14 14:47:41.141066: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2021-12-14 14:47:41.141092: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2021-12-14 14:47:41.141097: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2021-12-14 14:47:41.141101: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
/Users/amirhadzic/HumanMultiView/src_ortho/../models/neutral_smpl_with_cocoplus_reg.pkl
/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/deepdish/io/hdf5io.py:428: UserWarning: This file was saved with a newer version of deepdish. Please upgrade to make sure it loads correctly.
warnings.warn('This file was saved with a newer version of '
Iteration 0
Reuse is on!
Reuse is on!
Reuse is on!
Iteration 1
Reuse is on!
Reuse is on!
Reuse is on!
Reuse is on!
Iteration 2
Reuse is on!
Reuse is on!
Reuse is on!
Reuse is on!
Restoring checkpoint /Users/amirhadzic/HumanMultiView/models/model.ckpt-55124.index..
Traceback (most recent call last):
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/amirhadzic/HumanMultiView/demo.py", line 255, in
main(config.img_paths, config.json_path)
File "/Users/amirhadzic/HumanMultiView/demo.py", line 220, in main
model = RunModel(config, 4, num_views, sess=sess)
File "src_ortho/RunModel.py", line 74, in init
self.prepare()
File "src_ortho/RunModel.py", line 169, in prepare
self.saver.restore(self.sess, self.load_path)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "v_template" not found in checkpoint files /Users/amirhadzic/HumanMultiView/models/model.ckpt-55124.index
[[Node: save/RestoreV2_282 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_282/tensor_names, save/RestoreV2_282/shape_and_slices)]]

Caused by op u'save/RestoreV2_282', defined at:
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/amirhadzic/HumanMultiView/demo.py", line 255, in
main(config.img_paths, config.json_path)
File "/Users/amirhadzic/HumanMultiView/demo.py", line 220, in main
model = RunModel(config, 4, num_views, sess=sess)
File "src_ortho/RunModel.py", line 73, in init
self.saver = tf.train.Saver()
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1140, in init
self.build()
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1172, in build
filename=self._filename)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 688, in build
restore_sequentially, reshape)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 407, in _AddRestoreOps
tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 247, in restore_op
[spec.tensor.dtype])[0])
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 663, in restore_v2
dtypes=dtypes, name=name)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/Users/amirhadzic/opt/anaconda3/envs/human_multi/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access

NotFoundError (see above for traceback): Tensor name "v_template" not found in checkpoint files /Users/amirhadzic/HumanMultiView/models/model.ckpt-55124.index
[[Node: save/RestoreV2_282 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_282/tensor_names, save/RestoreV2_282/shape_and_slices)]]

Which model file should I use. Simehow none of them is working..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant