-
Notifications
You must be signed in to change notification settings - Fork 120
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
tf2.2 cannot run #6
Comments
Exact same error for tf2.1. This repo needs better documentation as well, for those unfamiliar with the original work. It's definitely not 'ported' to tf2.x |
tf2.3也不行啊!伙计赶紧更新啊 |
Hello @gsethi2409 You say this is compatible with TF2 but this is not so. Would you care to comment on what needs to be done to that made this work for you? |
Hi @tylertroy it's true, not compatible entirely with TF2.X, but somehow I can manage to run it with TF2.3.0. You can specify the block which is not working to get a solution. |
Hi, @parthbs in pose_estimate_video(video_name, path_video, path_out) /content/tf-pose-estimation/tf_pose/estimator.py in init(self, graph_path, target_size, tf_config, trt_bool) /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py in get_tensor_by_name(self, name) /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py in as_graph_element(self, obj, allow_tensor, allow_operation) /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py in _as_graph_element_locked(self, obj, allow_tensor, allow_operation) KeyError: "The name 'TfPoseEstimator/image:0' refers to a Tensor which does not exist. The operation, 'TfPoseEstimator/image', does not exist in the graph." |
Try to add this line |
Thanks, @oleggrigoryev22 ! It is work, but |
KeyError: "The name 'TfPoseEstimator/image:0' refers to a Tensor which does not exist. The operation, 'TfPoseEstimator/image', does not exist in the graph."
After I change 'TfPoseEstimator/image:0' to 'image:0', new error occured.
TypeError: An op outside of the function building code is being passed
a "Graph" tensor. It is possible to have Graph tensors
leak out of the function building context by including a
tf.init_scope in your function building code.
For example, the following function will fail:
@tf.function
def has_init_scope():
my_constant = tf.constant(1.)
with tf.init_scope():
added = my_constant * 2
The graph tensor has name: Openpose/concat_stage7:0
The text was updated successfully, but these errors were encountered: