Open power76 opened 4 years ago
Me too facing the same issue. Any workaround?
As I can't solve the problem on TF1.15, I upgraded it to 2.0 and got work.
Pretty sure it's not the best way but replacing the line to
num_detections = int(tf.get_static_value(output_dict.pop('num_detections'))[0])
did the trick for me.
This method works for me, Try it out.
layers1= tf.compat.v1.layers.dense(tf_x, 10, tf.nn.relu)
output= tf.compat.v1.layers.dense(layers1, 1)
num_detections = int(tf.get_static_value(output_dict.pop('num_detections'))[0])
I get this error while running your code: TypeError: 'NoneType' object is not subscriptable
As I can't solve the problem on TF1.15, I upgraded it to 2.0 and got work.
that's a workaround not a solution.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/tree/master/research/...
2. Describe the bug
I have completed the object_detection_tutorial run on Colab and it worked well. But when I run locally,there is a TypeError: