Open ccl-private opened 4 years ago
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?
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.
Привет @ gsethi2409 Вы говорите, что это совместимо с TF2, но это не так. Не могли бы вы прокомментировать, что нужно сделать, чтобы эта работа сработала для вас?
Привет, @tylertroy, это правда, не полностью совместим с TF2.X, но каким-то образом мне удается запустить его с TF2.3.0. Вы можете указать блок, который не работает, чтобы получить решение.
Hi, @parthbs
Try to add this line tf.compat.v1.disable_eager_execution()
in the start of init function of TfPoseEstimator
class
Try to add this line
tf.compat.v1.disable_eager_execution()
in the start of init function ofTfPoseEstimator
class
Thanks, @oleggrigoryev22 ! It is work, but tf.compat.v1.disable_eager_execution()
need to add in start of 'run*.py' file
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